关于mysql中int字段传入字符串引发的问题

mysql会隐式转换,int类型的字段传入字符串会截取从第一位int型开始到第一个非int型的值作为条件。

例如:where a=35abc 相当于 where a = 35,再如where a = b35c 相当于where a = 0

posted @ 2022-08-27 16:21  三思落  阅读(484)  评论(0)    收藏  举报