Hello Im trying to establish if the sql wildcards supported in cold fusion within query of queries (using ‘like’ operator) are also supported (in some other way with different syntax) in Lucee. In particular, I can’t seem to get Lucee to respect this statement SELECT name FROM querya WHERE name LIKE ‘[a-z]%’;
these don’t seem to be supported by Lucee either
SELECT name FROM querya WHERE name LIKE 'A[^c]%';
SELECT name FROM querya WHERE name LIKE '%[]';
SELECT name FROM querya WHERE name LIKE 'A[%]%';
SELECT name FROM querya WHERE name LIKE 'A[^c-f]%';
CF documentation from v9 below:
- The underscore (_) represents any single character.
- The percent sign (%) represents zero or more characters.
- Brackets [ ] represents any character in the range.
- Brackets with a caret [^] represent any character not in the range.
- All other characters represent themselves.