📜  检查表是否存在 postgresql 代码示例

📅  最后修改于: 2022-03-11 15:05:04.310000             🧑  作者: Mango

代码示例3
SELECT EXISTS (
   SELECT FROM pg_tables
   WHERE  schemaname = 'schema_name'
   AND    tablename  = 'table_name'
   );