Technology
Postgresql
·
阅读时间
·
更新于 2018.02.04
SQL
插入数据时忽略冲突
insert into table values (xx,xx) CONFLICT(fieldname) do nothing;
索引
CREATE SEQUENCE test_c_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
-- 索引授权
GRANT USAGE, SELECT ON SEQUENCE t_account_application_patch_log_id_seq TO user;