输入banner图图片脚本导航/分类

oracle实用sql语句

如果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语句

标签: