sql server - Is there a ternary operator in T-Sql? -


or alternatives implement next query:

select *   table   isexternal = @type = 2 ? 1 : 0` 

use case:

select * table isexternal = case @type when 2 1 else 0 end 

Popular posts from this blog

Php - Delimiter must not be alphanumeric or backslash -

c# - How to change the "Applies To" field under folder auditing options programatically (.NET) -

c++ - Ambiguity when using boost::assign::list_of to construct a std::vector -