1、创建表
CREATE table tb_user ( id serial primary key not null , name varchar(20) not null default '' ) ; comment on column tb_user.id is '主键id'; comment on column tb_user.name is '用户名'; comment on table tb_user is '用户表';
-- 设置主键自增 serial
-- 设置表的备注信息
comment on 表名 is '表注释';
comment on table tb_user is '用户表';
-- 设置列名备注
comment on column 表名.字段名 is '字段注释';
comment on column tb_user.name is '用户名';
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。