首先插入2条语句
1.insert into user(username,password) values('admin','password')
2.insert into user(username,password) values('admin ','password')
查询一下
1.select username,password from user where username='admin'
2.select username,password from user where username='admin '
上面2条语句查询结果返回相同,将有空格的admin和无空格的admin都返回,这是mysql的一个bug,忽略字符串最右的空格
如果列id为整型,查询时id=0aaa会强制转化为0再进行查询