jeudi 4 février 2016

if statement with INSERT as then clause (MYSQL)

I am making a conditional insert but i having trouble making one.

the condition is something like this

if(select count(*) from employee < 3, insert into employee (name) values ("lisa");

Aucun commentaire:

Enregistrer un commentaire