Oct 3, 2001 #1 simma Programmer Joined Sep 11, 2001 Messages 398 Location US hello How do I frame if statement in sql.I want to execute some statemnts if @a=0 and some if @a=1.
Oct 3, 2001 #2 fluteplr Programmer Joined Oct 23, 2000 Messages 1,599 Location US if @a = 0 begin do some stuff here end if @a = 1 begin do some stuff here end Upvote 0 Downvote
Oct 3, 2001 Thread starter #3 simma Programmer Joined Sep 11, 2001 Messages 398 Location US Thanks I already tried it Its checking for first statement but if its false,its not going to second but giving error there. Upvote 0 Downvote
Thanks I already tried it Its checking for first statement but if its false,its not going to second but giving error there.