In the MyTable table, I have the following data in the MyField column whose size is 80 characters:
MyField
-------
WA
W
W51534
W
W
I am trying to exclude lines starting with WA through regexp_like. But the following query returns the W51534 line and not the W lines :
select MyField
from MyTable
where regexp_like (upper (ltrim (MyField)), '^ [W][^A]');
I would like it to also return lines W. How can I do?
thank you in advance