sql server - How to write IF(expr1,expr2,expr3) in mssql -
there if(expr1,expr2,expr3) in sql.
how accomplish in ms sql?
you can use case expression:
case when expr1 expr2 else expr3 end
by way, syntax isn't sql server specific - works in mysql , other databases.
Comments
Post a Comment