I want to search for rows whose column email
has only the X
character.
For example, if the email is XXXX
, it should fetch the row but if the email is XXX@XXX.COM
it should not be fetched.
I have tried something like this, but it is returning me all emails having the character X
in it:
select *
from STUDENTS
where EMAIL like '%[X+]%';
Any idea what is wrong with my query?
Thanks