How do I put % in a format sting?

For example I want this to work:

>>> sql_template="""SELECT ENTRY FROM LOOKUP WHERE FIELDNAME LIKE '%s%V'"""
>>> sql_template % 'userdef103'
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
TypeError: not enough arguments for format string



-- 
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to