私は実験してpostgres
いて、この単純なクエリを機能させることができません:
drop table mytable if (select count(*) from mytable)<50 ;
これによりエラーが発生します:
ERROR: syntax error at or near "if"
LINE 1: drop table tablename if (select count(*) from mytable)<50 ;
特定の条件でpostgresのテーブルをどのように変更/削除しますか?