時間:2024-02-05 12:47作者:下載吧人氣:20
mysql使用auto_increment的語法實現表字段自增。
在PostgreSQL中,具有數據類型為smallserial,serial,bigserial的字段具有自增特性。
create table company(
id serial primary key,
name text not null,
age int not null,
address char(50),
salary real
);
網友評論