pgsql 執行建庫腳本時候出現ERROR: relation "xxx_id_seq" does not exist

1. 問題:post ERROR: relation "xxx_id_seq" does not exist code 2. 出現緣由:因爲表中創建了自增字段,id定義爲Serial 類型,當執行完成建表語句後,其字段便成blog int4 NOT NULL DEFAULT nextval('"xxx".xxx_id_seq'::regclass)    因爲xxx_id_seq該序列只能在建立表
相關文章
相關標籤/搜索