PostgreSql-> Table exist check query

PHOTO EMBED

Mon Apr 24 2023 14:52:20 GMT+0000 (Coordinated Universal Time)

Saved by @pradhyumnsoni #database #postgresql #nodejs #indiafirst #javascript #pgadmin4

SELECT EXISTS (
   SELECT FROM information_schema.tables 
   WHERE  table_schema = 'public'
   AND    table_name   = 'abcd'
   );
content_copyCOPY

Query to check table present in database or not (PostgreSql)