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.
新手来了 对不起,谢谢。我需要找到不等于“Ok”的记录。此代码不起作用。
是否有与 Perl 等效的 MySql ne?
ne
use DBI; SELECT * FROM people WHERE status ne 'Ok'
有两个运算符
SELECT * FROM people WHERE status != 'Ok'
和
SELECT * FROM people WHERE status <> 'Ok'
mysql 中的 ne 运算符是 !=