Jump to content


Photo

mssql conditions


  • Please log in to reply
No replies to this topic

#1 wolves

wolves
  • Members
  • PipPipPip
  • Advanced Member
  • 65 posts

Posted 27 January 2006 - 12:56 PM

is it possible?


 SELECT * FROM table1
 
 IF(SOMEFIELD = 'SOMETHING')
   BEGIN
 
   WHERE SOMEOTHERFIELD = 'SOMEOTHERTHING'

   END  


i'm trying to atribute some other clauses im my sql if somefield have somevalue is it possible?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users