I am experimenting with postgres
and can't get this simple query to work:
drop table mytable if (select count(*) from mytable)<50 ;
This gives error:
ERROR: syntax error at or near "if"
LINE 1: drop table tablename if (select count(*) from mytable)<50 ;
How do you alter/drop tables in postgres for a given condition?