在创建oracle视图中需要使用with as 做递归,可是oracle 提示 ORA-00933: SQL 命令未正确结束,
sql server 的视图里面直接用with as 就行,
oracle 视图里面含着with as 怎么处理?
可以直接创建的啊
循环不建议在sql里做,效率低,建议用程序数据集在java里做
带参程序数据集-https://help.finereport.com/doc-view-642.html
declare x number; begin x := 5 ; while x>0 loop x := x-1; -- 循环的每次处理 if x = 3 then return; -- 跳出循环 else dbms_output.put_line('x的值是'||x); end if; end loop; end;