Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: How simulate a logical 'OR' and 'AND in T-SQL?

$
0
0

No, I don't think you are correct.

T-SQL does support logical operators. Consider:

 

IF (1 = 1) AND (2 > 1)

begin

     print "Both are TRUE"

end

IF (1 = 1) OR (1 > 2)

begin

     print "One of them is TRUE"

end

 

See "and and or"

Enjoy!


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>