[Zope] Python formatting question

hpinson at indepthl.com hpinson at indepthl.com
Thu Jul 21 12:14:32 EDT 2005


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?

Any example would be appreciated.

Harlow Pinson
Indepth Learning
Email: hpinson at indepthl.com 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678



More information about the Zope mailing list