Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql alchemy escape ; in insert statement

import MySQLdb
query = """ insert into.... values("{}"...) """.format(MySQLdb.escape_string(item).replace(':',':'))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sql #alchemy #escape #insert #statement
ADD COMMENT
Topic
Name
5+2 =