[英]What does <> mean on SQL
I was looking for what the <> mean on sql syntax but it was hard to google for it since google removes my special characters. 我一直在寻找<>对sql语法的意思,但谷歌很难谷歌,因为谷歌删除了我的特殊字符。
Specifically I was trying to figure out what the following means: 具体来说,我试图找出以下含义:
... AND (s1.skips > 0 OR s1.fails <> 1 OR s2.skips > 0);
Is there any clear documentation talking about the <> clause? 有没有明确的文档谈论<>子句?
Please have a look at the documentation. 请查看文档。
当然,它是“不等于” - 操作符,与!=相同,请参见手册
<>
is the equivalent of !=
in many other programming languages. 在许多其他编程语言中, <>
相当于!=
。
Specifically, your MySQL query makes the following restrictions if any of these are true: 具体来说,如果满足以下任何条件,则MySQL查询会产生以下限制:
s1.skips > 0
- Number of s1 skips is greater than 0 s1.skips > 0
- s1跳过的数量大于0 s1.fails <> 1
- Number of s1 fails is NOT 1 s1.fails <> 1
- s1失败的次数不是1 s2.skips > 0
- Number of s2 skips is greater than 0 s2.skips > 0
- s2跳过的数量大于0
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.