1
Hello, how can I do something similar to an if but by sql?
For example: There is a field in the database called dt_ini with no value so far.
I’d like to do, "If dt_ini == ' ' Insert into table (dt_ini) values ..."
Would have to make a query in the database to see the dt_ini is or has the null value if yes Insert into... else ...
Ever tried to make a
insert-select
?– Jefferson Quesado
I didn’t quite understand the purpose, but the condition is made by the case when: https://dev.mysql.com/doc/refman/5.7/en/case.html
– Rovann Linhalis
If no SQL? Sorry if I’m talking nonsense, but a Where does not answer you?
– Mariana Bayonetta
Where... well thought out, I believe it suits me yes
– MrVanDaime