当前位置: 代码迷 >> Oracle管理 >> oracle插入语句异常
  详细解决方案

oracle插入语句异常

热度:48   发布时间:2016-04-24 05:00:47.0
oracle插入语句错误
insert into basic_fileinfo(id,name) values('1','2') where '2' not in (select name from basic_fileinfo) 
此语句执行错误!错误在什么地方?

------解决方案--------------------


insert into basic_fileinfo(id,name) 
select distinct '1','2' from basic_fileinfo where '2' not in (select name from basic_fileinfo)
  相关解决方案