码迷,mamicode.com
首页 > 数据库 > 详细

数据库报错Unknown column 'oKj5V4xN' in 'where clause'

时间:2018-05-28 11:36:15      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:报错   column   use   query   rom   info   Nid   where   引号   

报错:

Unknown column oKj5V4xN in where clause

原因:

查询字段需加引号
$query = $this->db->query(select * from userinfo where openId=".$openid.");

 

数据库报错Unknown column 'oKj5V4xN' in 'where clause'

标签:报错   column   use   query   rom   info   Nid   where   引号   

原文地址:https://www.cnblogs.com/maoriaty/p/9098756.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!