Hi
This feels like a stupid question because it should just work, so clearly I'm doing something wrong, but I have no idea what it is.
I have a table with 3 rows, 'Alan','Ben','Charlie'
I would expect
to return 2 rows, it returns none.
regexp_like(name,'A') returns 1 row so the function does work, sometimes!
My original problem was finding 'A[0-9]' which I managed to achieve using 'A\d', but it's very frustrating that the simple [A-B] does not work.
I am guessing it's something to do with codepage, ccsid or something, but what?!
We are on v7r2
Ta
Adrian
This feels like a stupid question because it should just work, so clearly I'm doing something wrong, but I have no idea what it is.
I have a table with 3 rows, 'Alan','Ben','Charlie'
I would expect
Code:
select * from mytable where regexp_like(name,'[A-B]')
regexp_like(name,'A') returns 1 row so the function does work, sometimes!
My original problem was finding 'A[0-9]' which I managed to achieve using 'A\d', but it's very frustrating that the simple [A-B] does not work.
I am guessing it's something to do with codepage, ccsid or something, but what?!
We are on v7r2
Ta
Adrian
Comment