Escaping SQL in python

Daniel Dittmar daniel.dittmar at sap.com
Wed Jun 27 12:14:46 CEST 2001


> Is there a method to escape ' " \ and the like in python auto-magiacaly
> ?

It is probably best to use triple quoted strings. This allows single quotes
of either variety and SQL statements tend to spread over multiple lines
anyway.

Daniel

--
Daniel Dittmar
daniel.dittmar at sap.com
SAP DB, SAP Labs Berlin
http://www.sapdb.org/







More information about the Python-list mailing list