insert into color
select lv_color,lv_color,lv_color
from color
where color1 = lv_color
and color2 <> lv_color
and rownum = 1
union
select color1 , lv_color , lv_color
from color
where color2 = lv_color
and color3 <> lv_color
select lv_color,lv_color,lv_color
from color
where color1 = lv_color
and color2 <> lv_color
and rownum = 1
union
select color1 , lv_color , lv_color
from color
where color2 = lv_color
and color3 <> lv_color
解决方案 »
- 建了一张时间表time,有年、年描述、月、月描述、日、日描述等,怎么将系统时间初始化进去,比如说20100101到20121231这段时间,用pl/sql实现。
- 大家来讨论下oracle erp都涉及到哪些技术?
- 包不能编辑的问题,高分在线等
- Oracle 9i中如何用过程实现导出?
- 求VB语法与PLSQL语法对照表
- 求救!!!数据恢复问题,怎么在一台机器上恢复别一台机器上的ORL文件夹下的数据库文件???
- 关于IF判断的问题
- windows xp操作系统可以安装oracle数据库嘛?
- 9I在内存256M下是如此的慢,慢的让人分特!!!!!
- 怎么下这样的sql,select sum(qty) from table1 where name='lile' group by name 当没有lile这条纪录时自动返回 sum(qty) =0 ,
- 请问这个创建序列的语句是什么意思?
- 怎么返回update更新的记录数?
( select color1,color1,color1 from color where
color1 not in ( select color2 from color)
union
select color1,color2,color2 from color where
color2 not in ( select color3 from color)
)
这样保证不会出现错误。