admin管理员组文章数量:1530518
报权限不够:
-- 对游客预定来源进行mock
insert into m_qunar_train(departure_city, resident_city, order_count, person_count, male_count, female_count, age_0018,
age_1925, age_2635, age_3645, age_4655, age_56ab, order_with_children, order_without_children,
order_time, use_time)
select departure_city,
resident_city,
order_count,
person_count,
male_count,
female_count,
age_0018,
age_1925,
age_2635,
age_3645,
age_4655,
age_56ab,
order_with_children,
order_without_children,
replace(to_char(order_time, 'yyyy-MM-dd HH24:MI:SS'), '2020', '2021')::timestamp,
use_time
from m_qunar_train
where order_time between '2020-09-09' and '2020-12-31';
在执行上面语句的时候,报错:
原因是用户没有相应的权限,此权限允许使用currval和nextval函数。
-- 添加授权之后 grant USAGE, SELECT on all sequences in schema public to songjiangjiang;
本文标签: PermissionErrordeniedseqmqunartrainidsequence
版权声明:本文标题:ERROR: permission denied for sequence seq_m_qunar_train_id 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dongtai/1726268725a1063558.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论