在数据库中创建视图时如何添加comment注释?如何设置不可为空
mysql:
create table users(id int primary key comment ‘注释’);
postgresql:
create table if not table_name
(
id bigserial,
dt date not null,
created_at timestamp default current_timestamp,
updated_at timestamp default current_timestamp
);
comment on table table_name is '表名';
comment on column table_name.dt is '值班日';
若有用,望采纳,谢谢