Problems de Serial data type in DBeaver & PostgreS

2019-07-20 03:47发布

I´m a new user (noob) of Dbeaver (community edition) and PostgreSQL, and I was having big trouble in defining an auto-incremented Primary Key in any table, so I would like to know how to be able to define an auto-incremented primary key using DBeaver, answers must no include these trials:

  1. Defining the primary key as serial (DBeaver will change it automatically to int2-4-8 even when defining the Primary Key as not null).
  2. Defining a new sequence in DBeaver (the best way to define a new sequence is throw pgAdmin4 and you may not be that successful to assign it to the table's Primary Key if your a noob just like I´m either in DBeaver or in pgAdmin4).

0条回答
登录 后发表回答