vendredi 13 juillet 2018

how to use if exists in sql postgres sql

Can I use IF exists in postgres sql? something like this

if exits(select* from a) then (select * from b) else (select * from c)

I am getting errors. What is the correct way to use it?

Aucun commentaire:

Enregistrer un commentaire