postgresql如何让主键自增

Sql代码

CREATE TABLE customers  
(  
  customerid SERIAL primary key ,  
  companyname character varying,  
  contactname character varying,  
  phone character varying

你可能感兴趣的:(数据库-PostgreSQL)