home
to by txus
<dtml-comment>
When your database supports SQL ,with this function you can use the Like % string % clause from sql.
</dtml-comment>
select count(FIELD1) from TABLE1 where FIELD2 = <dtml-sqlvar PARAM1 type="string"> and FIELD2 like <dtml-sqlvar "'%' + PARAM2 + '%'" type="string">