“Tabela truncada Postgres” Respostas de código

PostgreSQL truncate Cascade Restart Identity

TRUNCATE bigtable, fattable RESTART IDENTITY;
Cirilord

Reinicie a cascata de identidade

TRUNCATE <table_name> RESTART IDENTITY CASCADE;
--RESTART will reset the identity sequence
--CASCADE all tables that have a foreign key reference to 
--table_name will be truncated as well
The Nihad

Tabela truncada Postgres

truncate my_table restart identity
Unsightly Unicorn

truncate psql

TRUNCATE [ TABLE ] [ ONLY ] name [ * ] [, ... ]
    [ RESTART IDENTITY | CONTINUE IDENTITY ] [ CASCADE | RESTRICT ]
Colorful Centipede

Respostas semelhantes a “Tabela truncada Postgres”

Perguntas semelhantes a “Tabela truncada Postgres”

Mais respostas relacionadas para “Tabela truncada Postgres” em Sql

Procure respostas de código populares por idioma

Procurar outros idiomas de código