mercredi 22 mai 2019

MySQL run query if previous query is not null

I am trying to run two queries where the second query will run only if the first is not null. Something like:

    if((select * from abc where id =1)!=null)
      select * from cde
    else exit;

what is the proper way to perform such operations?

Aucun commentaire:

Enregistrer un commentaire