Posts by Raphael Carubbi Neto • 31 points
1 post
-
3
votes2
answers224
viewsA: Condition for INSERT INTO
Using SQL Ansi, which works on all databases, you can do something like: insert into dados (coluna1) values ( case @parametro when 1 then 1 when 2 then 1 when 3 then 1 else 0 end)…