Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/assembly/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql 其中列不是“$value”?_Sql_Where - Fatal编程技术网

Sql 其中列不是“$value”?

Sql 其中列不是“$value”?,sql,where,Sql,Where,我正在尝试从数据库中选择除一项之外的所有内容 使用标题中的语法不起作用,这是他们的另一种方法吗?尝试以下方法: WHERE column <> '$value' WHERE column != '$value' 不与NULL一起使用 例如: 谢谢,很简单。我会在12分钟后检查这个答案。你怎么能把它和where column=value结合起来呢?e、 g.从$usertable中选择*,其中列不为NULL,列为“是” WHERE column IS NOT NULL

我正在尝试从数据库中选择除一项之外的所有内容

使用标题中的语法不起作用,这是他们的另一种方法吗?

尝试以下方法:

WHERE column <> '$value'
WHERE column != '$value'
不与NULL一起使用

例如:


谢谢,很简单。我会在12分钟后检查这个答案。你怎么能把它和where column=value结合起来呢?e、 g.从$usertable中选择*,其中列不为NULL,列为“是”
WHERE column IS NOT NULL