“<>” vs “NOT IN”

后端 未结 9 1515
Happy的楠姐
Happy的楠姐 2020-12-14 17:53

I was debugging a stored procedure the other day and found some logic something like this:

SELECT something
FROM someTable
WHERE idcode <> (SELECT ids          


        
9条回答
  •  孤街浪徒
    2020-12-14 18:09

    in some versions of SQL != should be used for a "not equals" logical statement. Have you tried that?

提交回复
热议问题