[Zope] Python formatting question

Andreas Jung lists at andreas-jung.com
Thu Jul 21 12:31:49 EDT 2005



--On 21. Juli 2005 10:14:32 -0600 hpinson at indepthl.com wrote:

> In a Python script, how can I break up a SQL statement over more than
> one line?  For example, to transform
>
># generate the sql statement
> sql="DELETE FROM tblUsers WHERE user_name LIKE '%'"
>
> to:
>
># generate the sql statement
> sql="DELETE FROM tblUsers
>        WHERE user_name LIKE '%'"
>
> ...does not work. Is there a way to break lines?
>

Why don't you use ZSQL methods?

-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050721/aebbb750/attachment.bin


More information about the Zope mailing list