1
A
回答
6
SELECT * FROM table_name WHERE type != 'news';
是一种方法,如果您有多个:
SELECT * FROM table_name WHERE type NOT IN('news', 'other');
2
SELECT * FROM myTable WHERE type != 'news'
1
`SELECT * FROM atable WHERE type != 'news'
保留尽可能多的查询,你可以到数据库中,这就是他们是什么!
-2
它实际上是
SELECT * FROM MY_TABLE其中Type NOT LIKE '新闻'
1
ANSI的答案将是 SELECT * FROM table_name的WHERE型<> '新闻'
!=不SQL中不错的不等式运算符。不使用通配符的'NOT LIKE'与<>运算符完全相同。如果您必须检查许多字符串的等式(或不等式),NOT IN也是最好的解决方案。
P.S.我宁愿将其作为评论发布,但恐怕我并不完全理解StackOverflow,但我还没有做到这一点(或者我没有足够的评论声望)。
相关问题
- 1. php mysql where clause
- 2. PHP MYSQL WHERE错误
- 3. MySQL的PHP多WHERE子句
- 4. PHP PDO - MySQL的INSERT用WHERE
- 5. php mysql where where clause使用日期
- 6. PHP MySQL在where子句
- 7. PHP MySQL select * WHERE id => 100
- 8. PHP MySql - SELECT where similar_text()> x
- 9. MDX除了where子句中的函数
- 10. mysql:'WHERE something!= true'排除NULL的字段
- 11. 删除与MySQL中的WHERE EXISTS查询
- 12. MySQL的时间戳,where子句在PHP
- 13. PHP + MySQL的 “WHERE ... IN” 不工作
- 14. PHP/MySQL的转换阵列WHERE子句
- 15. PHP MySQL的删除
- 16. PHP的MySQL删除
- 17. MySQL的与WHERE
- 18. MySQL的WHERE IN()
- 19. 从mysql表中删除使用where和where条件
- 20. mysql php where子句不起作用
- 21. PhP MySQL“WHERE”查询返回null /为空
- 22. (PHP,MYSQL)用多个WHERE更新多行
- 23. PHP MYSQL比较行WHERE语句
- 24. PHP MySQL选择与WHERE列未找到?
- 25. PHP和MySQL可选WHERE条件
- 26. 在MySQL PHP - WHERE子句 - 不工作
- 27. MySQL where where clause with microseconds
- 28. MySQL加入where where子句
- 29. Java mySQL multiple where Where子句
- 30. MySQL Multiple Select,Where Where子句
从这里开始:http://en.wikipedia.org/wiki/Relational_operator#Standard_relational_operators提示:你需要的是在表的第二行。 – 2010-10-22 21:45:04