关于PL/SQL Developer的美化问题!

PL/SQL Developer中有没有一个功能能使类似如下的格式化的sql语句:
select *
from tableName
where n1 = 1
and n2 = 2
反格式化为如下代码:
select * from tableName where n1 = 1 and n2 = 2

也就是把格式化完的代码放到一行上去!

如果没有却提供其他可行性方案的,可以另外给分!!

PL/SQL没有你说的那种功能,只能手动进行规范语句格式。
例如:游标应用
declare
cursor c1 is select * from 表 where 条件 order by 字段 for update of 字段;
v c1%rowtype;
begin
open c1;
loop
fetch c1 into v;
exit when c1%notfound;
if 条件 then
语句
else
语句
end if;
语句
end loop;
close c1;
COMMIT;
exception when OTHERS then
异常处理语句
end;
温馨提示:答案为网友推荐,仅供参考
第1个回答  2012-08-06
你是想把一行的转为多行,还是多行的转为一行呢?追问

问题已经说的很明显了!是多行转一行!

相似回答
大家正在搜