mysql是 @Column(name = "name", columnDefinition = "varchar(100) comment '注释'")
postgresql是什么做呢?
create table session_log
(
userid int not null,
phonenumber int
);
----添加注释
---给字段添加注释
comment on column session_log.userid is '用户id';
comment on column session_log.phonenumber is '电话号码';
----给表添加注释
comment on table session_log is '日志记录';
应该也是一样的