1、postgresql服务启动步骤
1)以管理员身份打开cmd窗口
2)切换目录到postgresql安装目录bin目录下
3)启动数据库进程
pg_ctl.exe start -D ..\data
2、postgresql设置主键自增的方式
// 建表的时候使用serial
create table test(
// 会自动创建"表名_字段名_seq"的序列
id serial primary key,
age int
)
1、postgresql服务启动步骤
1)以管理员身份打开cmd窗口
2)切换目录到postgresql安装目录bin目录下
3)启动数据库进程
pg_ctl.exe start -D ..\data
2、postgresql设置主键自增的方式
// 建表的时候使用serial
create table test(
// 会自动创建"表名_字段名_seq"的序列
id serial primary key,
age int
)