Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

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

$
0
0

Hi Rick

Jon is correct, but if you really wanted to, OR would look like this

 

If condition1 then

     begin

          --dothis

     end

else if condition2 then

     begin

         --dothis

     end

 

But that is just for completeness sake, don't know why would you want to do it like this


Viewing all articles
Browse latest Browse all 3587

Trending Articles



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