We have defined a grammar and are storing expression strings in our database that follow this grammar. One possible term in our expressions is IIF(condition, then, else). I need to query our expressions table for all expressions that contain a '+' in the condition of an IIF.
What I am trying to do with this statement below is search for conditions with any number of non-comma characters followed by a '+' followed by any number of non-comma characters followed by a comma. Where am I going wrong?
select * from ... and value like '%IIF([^\,]*\+[^\,]*\,%';
LIKEoperator accepts regular expressions at all?