13
在SQL
,就是<>
和!=
之間的區別,我們可以同時使用的 「NOt Equal to
」。
它們之間有什麼區別嗎?
ex。
select * from student where no != 2;
&
select * from student where no <> 2;
是使用一個的任何優勢insted的另一個?
是什麼,因爲它的!=
不作爲ISO標準
在SQL
,就是<>
和!=
之間的區別,我們可以同時使用的 「NOt Equal to
」。
它們之間有什麼區別嗎?
ex。
select * from student where no != 2;
&
select * from student where no <> 2;
是使用一個的任何優勢insted的另一個?
是什麼,因爲它的!=
不作爲ISO標準
對於SQL Server所做的主要因素有:
他們是相同的。兩者都是不等於運營商。但是!=
不是ISO標準,從Comparison Operators報價:
!<>(不等於)不等於
=(不等於)不等於(未ISO標準)
不,沒有區別。 – Bridge
感謝這個問題,我不知道這件事。 :) –
可能希望在發佈之前先搜索存檔。一個非常快速的搜索返回http://stackoverflow.com/questions/5856439/difference-between-and-in-sql似乎問/回答相同的問題。 – Leigh