select查询Unknown column '’hello‘' in 'where clause'

可能有中文标点
select查询Unknown column ‘’hello‘’ in ‘where clause’
hello附近改正后即可

  • SELECT*FROM USER WHERE username=‘hello’ AND PASSWORD=‘123456’;//正确的
  • SELECT*FROM USER WHERE username=’hello‘ AND PASSWORD=’123456‘;含有中文字符的

猜你喜欢

转载自blog.csdn.net/bin_bujiangjiu/article/details/105541282