[Zope-DB] how to get all values if input is not defined?
Michael Mauws
michael at mauws.net
Wed Apr 7 19:01:05 EDT 2004
An easy way to deal with this is using dtml-if:
<dtml-if A>
SELECT * FROM X WHERE FIELD1 = <dtml-sqlvar A type=string>
<dtml-else>
SELECT * FROM X
</dtml-if>
More information about the Zope-DB
mailing list