话不多说,给个例子:
insert into user_role (IS_USERRIGHT, USER_ID, ROLE_ID, RULE_ID)
select 1, g.id, 111, 0
from gu g where g.start_date like to_date('2020-01-03','yyyy-mm-dd') and g.code not in ('T111');
本文提供了SQL语言的实际应用示例,包括插入数据到user_role表、使用特定条件进行选择查询等,适合数据库开发者和SQL初学者参考。
话不多说,给个例子:
insert into user_role (IS_USERRIGHT, USER_ID, ROLE_ID, RULE_ID)
select 1, g.id, 111, 0
from gu g where g.start_date like to_date('2020-01-03','yyyy-mm-dd') and g.code not in ('T111');
4516

被折叠的 条评论
为什么被折叠?