Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是法国人,抱歉我的词汇量不好。我的代码有一个小问题,当我执行SQL查询时出现此错误:
SQL
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ID' in 'where clause'
这是代码:
UPDATE s_data_bans SET `name` = '$name', `text` = '$corps', `idCat` = '$cat', `on` = '$unpub' WHERE ID='$id'
该错误表明您的 s_data_bans 表中没有名为 ID 的此类列,请检查并确保您的列表的字母大小写与您的查询匹配(如果它是小写字母(即 id)放置 WHERE id= .. . 在您的查询中)。
祝你好运