Selections. When an option is selected from the dropdown menu, Select2 will display the selected value in the container box. By default, it will display the text property of Select2's internal representation of the selected option.
Вам нужно всего лишь сделать CAST, если вы хотите получить результат в виде логического значения, если вы довольны int, это работает: SELECT CASE. WHEN Obsolete = 'N' or InStock = 'Y'. THEN 1. ELSE 0. END as Saleable, * FROM Product.
Control then passes to the statement following End Select.
I strongly suggest to add a CASE DEFAULT in every SELECT CASE statement. The place for CASE DEFAULT can be anywhere within a SELECT CASE statement; however, put it at the end would be more natural.
I need to select the project rate or shift rate that has the effective date less than today. … Please note that this code snippet is part of a larger stored proc and thus it must be within a CASE statement.
SELECT shop_id, CASE market_id. When 1 then 'Ikea'.
Select Case – управляющий оператор, выполняющий один из нескольких блоков операторов в зависимости от значения выражения.
Custom Select Box. Default: Select car: Audi BMW Citroen Ford Honda Jaguar Land Rover Mercedes Mini Nissan Toyota Volvo.
Затем управление передается оператору, следующему End Select.Control then passes to the statement following End Select.