用一条语句实现几乎是不可能的
写一个pl/sql块吧
写一个pl/sql块吧
解决方案 »
- Oracle ERP 9I 的数据库搭建主从后,用从库的数据文件再去做克隆操作,执行完后新的控制文件不包含一些数据文件,都是搭建主从后创建的数据文件。
- oracle数据库表中某自段如何设置为自增字段呢?
- 在线急求:oracle8.0解锁用户
- 测试存储过程的时候报ora-01480的错误,怎么处理?
- 谁能给我解释一下关于:角色的密码有什么作用呢?
- linux8+oracle9.2.0安装好了后,dbca和netmgr都不能运行;请大虾帮忙
- ★★procedure能调用function吗?★★
- 字符集问题!
- 急求急求
- ORACEL中数据一对多的关系
- 有个时间类型的字段,得到这个字段中的最大时间值和最小时间值的sql语句怎么写啊???
- SQLLoader
Result varchar2(100);
cursor rad_cursor(v_user_name varchar2) is
select user_name from tbl_user
where id=v_id ;begin
Result:='';
for v_sor in rad_cursor(p_id) loop
Result:=Result||','||v_sor.user_name;
end loop;
return(Result);
end get_user_name;
/select id,get_user_name(id) from tbl_user group by id;
from
(select x from table where ...) a,
(select x from table where ...) b,
(select x from table where ...) c,
(select x from table where ...) d,
(select x from table where ...) e
where ...