Jump to content

mssql conditions


wolves

Recommended Posts

is it possible?

[code]

SELECT * FROM table1

IF(SOMEFIELD = 'SOMETHING')
   BEGIN

   WHERE SOMEOTHERFIELD = 'SOMEOTHERTHING'

   END  

[/code]

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.