I want to use the LIKE operator to match possible values ββin a column.
If the value starts with βCUβ, followed by a digit (for example, β3β), followed by something else, I would like to return it. It seems like a wildcard is used for any single character, but I need to make sure it's a digit, not az. I tried this to no avail:
select name from table1 where name like 'CU[0-9]%' select name from table1 where name like 'CU#%'
Preferably, it may be case sensitive, that is, if cu or Cu or cU, then it will not match.
source share