[PyGreSQL] How to quote strings contain single quote and "$$$$"?

Christoph Zwerschke cito at online.de
Mon Dec 17 08:27:18 EST 2007


fdu.xiaojf at gmail.com schrieb:
> I'm a newbie to postgresql. I'm trying to extract data from a MDL sdf file and 
> deposit them to my database. Some data item in sdf contains single quote(\') 
> or four dollars($$$$) which denotes the end of a record in sdf file.

Simply replace the single quote with two single quotes.

-- Chris


More information about the PyGreSQL mailing list