Why does a query return a result if the field is numeric and the WHERE clause is a string?

后端 未结 0 771
野的像风
野的像风 2021-02-06 17:39

I am running a query on a db table which is returning one record when I expect it to return no records.

SELECT yeargroupID FROM tbl_yeargroup WHERE yeargroup=\'S\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题