[Zope] ZSql Method with like.
After Dark
afterz@zipmail.com
Fri, 08 Jun 2001 13:59:05 -0400
How should I do to use 'like' with ZSql Method? Similar to
the example:
Ex.:
SELECT field1 FROM table WHERE field2 LIKE '%test%'
I tryed this: --> arq is an argument
select field1 from table where field2 like '%<dtml-sqlvar
arg type=string>%'
Then I get this: select field1 from table where field2 like
'%'agx'%'
I need to put the char '%' with the var.
Thanks.
--
--Ricardo Kohler
Costa
________________________________________________
Don't E-Mail, ZipMail! http://www.zipmail.com/