当前位置:Gxlcms > 数据库问题 > oracle实用sql语句

oracle实用sql语句

时间:2021-07-01 10:21:17 帮助过:2人阅读

如果A表中指定id的行不存在,那么就插入新行到B表 

insert into B(functionId,roleid,updateTime)
select ‘123‘,‘1‘,sysdate
  from dual
where not exists(select 1 
                    from A
                   where roleid=‘1‘
                 )     

oracle实用sql语句

标签:

人气教程排行