私はすべてのテーブルの存在をチェックしたいと思います。すべてのテーブルが存在する場合は1を、1つ以上のテーブルがない場合は0を送信します。すべてのテーブルの存在を確認するには? in postgresql
select 1 from information_schema.tables tbl where tbl.table_name='graphe';
select 1 from information_schema.tables tbl where tbl.table_name='proprieteindicateur';
select 1 from information_schema.tables tbl where tbl.table_name='graphe_proprieteindicateur';
select 1 from information_schema.tables tbl where tbl.table_name='utilisateurs';
select 1 from information_schema.tables tbl where tbl.table_name='profil';
select 1 from information_schema.tables tbl where tbl.table_name='droit';
いかなる理由がお役に立てば幸いですか!可能であれば、カウントを予想される回答と比較する関数を作成します。次に、結果に基づいて1または0を返します。 – Crackerman
理由はありません。テーブルが存在し、1または0を返すかどうかをチェックするリクエストを1つしか受けられないようにしたいと考えています。 しかし、詳細を伝えることができますか? –