Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to truncate table with foreign key constraint postgresql

TRUNCATE table_name RESTART IDENTITY CASCADE;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #truncate #table #foreign #key #constraint #postgresql
ADD COMMENT
Topic
Name
7+4 =