insert into gr(id,name,grade)
( select id,name,decode(sign(score-89),1,'A',
decode(sign(score-79),1,'B',
decode(sign(score-69),1,'C',
decode(sign(score-59),1,'D',E))))
from sc
where score is not null
);
( select id,name,decode(sign(score-89),1,'A',
decode(sign(score-79),1,'B',
decode(sign(score-69),1,'C',
decode(sign(score-59),1,'D',E))))
from sc
where score is not null
);
解决方案 »
- oracle 数据处理请教
- 在oracle数据库中如何查询出一个表中最后插入的一条记录?
- JDBC链接ORACLE的问题
- 如何知道字符串种特定字符的位置
- 一个统计语句请大家帮忙想一下!
- 谁有p3006854_9204_LINUX.zip的pach
- ^_^^_^^_^ 再请高手们帮偶看看 (这个存储过程怎么写 )^_^^_^^_^
- 一样的代码,一样的库结构,在sqlserver中可以,在oracle不可以
- 在oracle9i中怎么创建一个新的方案?
- C++程序向oracle数据库导入数据
- 高手才能解决的pl/sql的问题,for循环为什么只执行一次,
- 初学oracle,如何枚举得到oracle数据库中用户创建的表!
( select id,name,decode(sign(score-89),1,'A',
decode(sign(score-79),1,'B',
decode(sign(score-69),1,'C',
decode(sign(score-59),1,'D','E'))))
from sc
where score is not null
);