I am trying to make select query as follow
SELECT * FROM `corporate_names` WHERE id = '1s';
but it still gives me result as there is no column id with value equals to '1s'.
it reslts me of SELECT * FROM corporate_names WHERE id = '1'; result.
I am not getting why isthis happening? how can i exactly match id column with string value as id is primary key with int column type.
i want it to exact match the column value
SELECT * FROM corporate_names where CAST(id as char(255)) = '1s'. thank you.