内容简介:sql中表示不等于关系时,有两种写法!=、<>,抱着刨根问底的精神,看看这两个符号到底有什么不同https://stackoverflow.com/questions/18015422/what-is-difference-between-and-in-sql-server搬运过来
背景
sql中表示不等于关系时,有两种写法!=、<>,抱着刨根问底的精神,看看这两个符号到底有什么不同
标准答案
https://stackoverflow.com/questions/18015422/what-is-difference-between-and-in-sql-server
搬运过来
这两个符号没有任何区别,你使用哪个都一样。
Microsoft的文档中,这两个符号的意义相同,都是 Not Equal To
https://docs.microsoft.com/en-us/sql/t-sql/language-elements/not-equal-to-transact-sql-exclamation?view=sql-server-2017
但,<>是ANSI 99 SQL 标准中的定义,!=不是。所以,不是所有的DB引擎都支持!=。
最终推荐使用<>。
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Web Security Testing Cookbook
Paco Hope、Ben Walther / O'Reilly Media / 2008-10-24 / USD 39.99
Among the tests you perform on web applications, security testing is perhaps the most important, yet it's often the most neglected. The recipes in the Web Security Testing Cookbook demonstrate how dev......一起来看看 《Web Security Testing Cookbook》 这本书的介绍吧!