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