Posts by Jeilson Soares • 23 points
1 post
-
2
votes1
answer2174
viewsQ: How to make an insert with conditions in SQL?
I am trying to make an Insert, a column of which depends on a result INSERT INTO TABELA (ID, (CASE 'opcao1' WHEN 'opcao1' THEN "campo1" WHEN 'opcao2' THEN "campo2" ELSE campo3 END)) VALUES…