Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #sequence #exists #postgresql
ADD COMMENT
Topic
Name
6+4 =