Should I use != or <> for not equal in T-SQL?

前端 未结 14 1642
失恋的感觉
失恋的感觉 2020-11-22 04:23

I have seen SQL that uses both != and <> for not equal. What is the preferred syntax and why?

14条回答
  •  攒了一身酷
    2020-11-22 04:53

    I understand that the C syntax != is in SQL Server due to its Unix heritage (back in the Sybase SQL Server days, pre Microsoft SQL Server 6.5).

提交回复
热议问题