आप शायद एक CASE
अभिव्यक्ति
।
वे इस तरह दिखते हैं:
SELECT col1, col2, (case when (action = 2 and state = 0)
THEN
1
ELSE
0
END)
as state from tbl1;
आप शायद एक CASE
अभिव्यक्ति
।
वे इस तरह दिखते हैं:
SELECT col1, col2, (case when (action = 2 and state = 0)
THEN
1
ELSE
0
END)
as state from tbl1;