create table video ( id serial not null, video_url varchar(255) not null, struc_id int ); comment on column video.video_url is '泵站摄像头嵌入链接'; comment on column video.struc_id is '泵站id,不填就是全部'; create unique index video_id_uindex on video (id); alter table video add constraint video_pk primary key (id);