Skip to content
Advertisement

How to add escape $ in Zend framework query

I need to add escape '$' in zend framework.

expected query:

SELECT * FROM V_HOME_SEARCH sv WHERE sv.NAME LIKE '%gar$_%' ESCAPE '$'

I tried this:

Here how can I add escape ‘$’ in above code.

Thanks in advance

Advertisement

Answer

Zend_Db doesn’t seem to offer any support for Oracle LIKE clauses with the ESCAPE keyword so all you can do is literally add it to the where() call

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement