I have a table name workspaces with id has data type = bigint(20) unsigned I'm trying to query my database as the following:
SELECT * FROM workspaces WHERE id = 1;
SELECT * FROM workspaces WHERE id = '1.a';
Both of them are returns the correct result. But I think the (2) statement is wrong, why sql still return correct value right? What is the reason? Could you help me to understand why? Thank you so much.
Here is test case on db<>fiddle.