摘要:
postgres设置字段可为空约束与非空约束 1、设置非空约束 alter table [tab_name] alter COLUMN [col_name] set not null; 2、设置可为空约束 alter table [tab_name] alter COLUMN [col_name] 阅读全文
posted @ 2023-09-19 16:36
站着说话不腰疼
阅读(1323)
评论(0)
推荐(0)
摘要:
postgres授权给其他用户 1、授权 在授权前,需要先执行schema的使用授权,不然授权无效 grant usage on schema user_1 to user_2; GRANT SELECT ON TABLE user_1.t_conf_table TO user_2; 2、查询指定表 阅读全文
posted @ 2023-09-19 16:36
站着说话不腰疼
阅读(466)
评论(0)
推荐(0)

浙公网安备 33010602011771号