CREATE TABLE test (
?? ?id int,
?? ?name varchar(1000) ,
?? ?email varchar(1000) ,
?? ?phone varchar(1000) ,
?? ?CONSTRAINT test_pkey PRIMARY KEY (id)
);
单独执行sql添加注释:comment ON column 表名.列名 is '注释';
例如:
comment ON column regre.public.test."name" is '名称';
comment ON column regre.public.test.email is '邮箱';
comment ON column regre.public.test.phone is '电话';