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

前端 未结 14 1624
失恋的感觉
失恋的感觉 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:54

    I preferred using != instead of <> because sometimes I use the syntax to write SQL commands. Using != is more handy to avoid syntax errors in this case.

提交回复
热议问题