SELECT * FROM tablename WHERE UCASE('abCD') = UCASE('ABcd');
SELECT * FROM tablename WHERE 'abCD' like 'ABcd';
Comment