search

Home  >  Q&A  >  body text

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

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

巴扎黑巴扎黑2780 days ago648

reply all(3)I'll reply

  • 怪我咯

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

    Try this sql: select `id` from `user` where `account` = ?

    reply
    0
  • 大家讲道理

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

    Have you checked the case? If that still doesn’t work, you can add single quotes to the account. Also? Also add a single quote

    reply
    0
  • 黄舟

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

    Have you set up the database? use db.

    reply
    0
  • Cancelreply