Heim  >  Fragen und Antworten  >  Hauptteil

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

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

巴扎黑巴扎黑2742 Tage vor612

Antworte allen(3)Ich werde antworten

  • 怪我咯

    怪我咯2017-04-17 15:47:28

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

    Antwort
    0
  • 大家讲道理

    大家讲道理2017-04-17 15:47:28

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

    Antwort
    0
  • 黄舟

    黄舟2017-04-17 15:47:28

    你设置数据库了?use db.

    Antwort
    0
  • StornierenAntwort