“Potong psql” Kode Jawaban

Mulai ulang kaskade identitas

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

Tabel Potong Tabel Potong

truncate my_table restart identity
Unsightly Unicorn

Potong psql

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

Jawaban yang mirip dengan “Potong psql”

Pertanyaan yang mirip dengan “Potong psql”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya