Guest_imported
New member
- Jan 1, 1970
- 0
Ok, this is how it looks with MSSQL, a very straight forward ANSI92 compatible LIKE with wildcards:
WHERE ((strzugriff LIKE '[1,2]%') OR (strzugriff LIKE '____________[1,2]%'))
I've tried everything in MySQL and just can't get the result. Why I have to ask for help beats me, but here it is - can anyone give me a LIKE or REGEXP that works?
WHERE ((strzugriff REGEXP '[1-2]*') OR (strzugriff REGEXP '............[1-2]*'))
...fails miserably?
WHERE ((strzugriff LIKE '[1,2]%') OR (strzugriff LIKE '____________[1,2]%'))
I've tried everything in MySQL and just can't get the result. Why I have to ask for help beats me, but here it is - can anyone give me a LIKE or REGEXP that works?
WHERE ((strzugriff REGEXP '[1-2]*') OR (strzugriff REGEXP '............[1-2]*'))
...fails miserably?