Drop sequence and cascade

前端 未结 4 1459
粉色の甜心
粉色の甜心 2021-02-05 05:43

I would like to drop the sequence used in table and the table itself in one statement using CASCADE, but I\'m getting NOTICE and table is not dropped. For example:



        
4条回答
  •  终归单人心
    2021-02-05 06:21

    drop cascade table table_name; you can also use this... and i will also recommend you to use a serial with primary key so that you can identify a column uniquely..

提交回复
热议问题