您的位置:首页技术文章
文章详情页

mysql - Unknown column ’xxx’ in ’where clause’

浏览:65日期:2022-06-17 17:25:00

问题描述

mysql - Unknown column ’xxx’ in ’where clause’

mysql - Unknown column ’xxx’ in ’where clause’

这个字段是存在的,在数据库编辑器中可以查询到.

问题解答

回答1:

试下这个sql:select `id` from `user` where `account` = ?

回答2:

你检查了大小写了吗?还不行可以给account加单引号,还有?也加个单引号

回答3:

你设置数据库了?use db.

相关文章: