Answers for "check if data sequence exists postgresql"

SQL
0

how to check if a sequence exists in postgresql

IF EXISTS (SELECT 0 FROM pg_class where relname = '<my sequence name here>' )
THEN
  --stuff here
END IF;
Posted by: Guest on May-09-2021

Code answers related to "check if data sequence exists postgresql"

Code answers related to "SQL"

Browse Popular Code Answers by Language