- File > Properties > Editors > SQL Editor > SQL Processing
- Uncheck "Blank line is statement delimeter" in Delimeters section.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= Table.AddColumn(#"Changed Type", "SQL", each "INSERT INTO TableName (" & Text.Combine(Table.ColumnNames(#"Changed Type"), ", ") & ") VALUES (" & Text.Combine(List.Transform(Record.FieldValues(_), each "'" & Text.From(_) & "'") , ", ") & ")") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import BOE_SQLAccess as boesql | |
sqlEngine = boesql.createSQLAlchemyEngine() # or equivalent SQLEngine object | |
tableName = 'petrinex_ab_well_licence' | |
pk = 'Licence Number' # target column to check for duplicates as the primary key | |
df_in = pd.read_sql(tableName, con=sqlEngine) | |
df = df_in.copy() # make a copy for safety, because downloads can be expensive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Unix/Max | |
ping www.google.com -i 1 | while read pong; do echo "$(date +%Y-%m-%d_%H:%M:%S): $pong"; done | grep --line-buffered timeout | |
# Windows (through cygwin or Git Bash) | |
ping www.google.com -n 500000 | while read pong; do echo "$(date +%Y-%m-%d_%H:%M:%S): $pong"; done | grep --line-buffered timed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import urllib.request | |
import xml.etree.ElementTree as ET | |
import time, random, math | |
import smtplib | |
from email.message import EmailMessage |
NewerOlder