Quantcast
Channel: ELSE IF vs. just plain ELSE
Browsing all 4 articles
Browse latest View live

ELSE IF vs. just plain ELSE

This is little bit confusing.T-SQL does not have ELSE IF branch, and instead it seems that uses nested if-s. So For example, what seems like ELSE IF branches like thisDECLARE @a int = 12; IF (@a > 0...

View Article



ELSE IF vs. just plain ELSE

I think there was a flaw in your test. If you can show it, it will be easier to figure out.I've triedIF 1=1   SELECT 'True 1=1' ELSE   IF 2=2      SELECT 'True 2=2'and only got first select to...

View Article

ELSE IF vs. just plain ELSE

There is no ELSE IF in T_SQL, there is only IF and ELSESo if you are writing ELSE IF it is as if u are using a nested IF inside the ELSE.Ali Hamdar (alihamdar.com - www.ids.com.lb)

View Article

ELSE IF vs. just plain ELSE

I just want to verify some observations I've made. I was debugging some T-SQL that was more or less like this: IF <Condition1> SQLStatement1 ELSE IF <Condition2>SQLStatement2The thing is, I...

View Article
Browsing all 4 articles
Browse latest View live


Latest Images