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.
我正在尝试以下查询
SELECT COUNT(*) FROM users` WHERE email = 'xyz@xyz.com'
这不会给我语法错误(注意不要在表名的开头包含 ` 字符)。并且总是给我计数为 1,尽管在 db 中没有记录。
如果我COUNT从查询中删除,我会收到错误消息。
COUNT
希望这不是mysql中的错误。
反引号似乎正在注释掉该行的其余部分。
我不能说为什么,但我已经测试过(通过 phpMyAdmin)并且确实如此。