Oracle PL / SQL分析查询的输出,写入文件

问题描述

| 我正在做老板给我的一个项目。我没有太多经验,但是我必须学习。关于Oracle DB 11g,我正在使用SQLPlus和PL / SQL作为查询语言。 基本上,对于每个查询语句,我将需要脚本来解释结果并将真/假输出到文件。 例如,
select id from sample_table where id=3;

/**code needed that will do something like:**/
/**if(id=3),write to file TRUE,else,write to file FALSE**/

select salary from sample2 where id=5;

/**similar code needed as above**/

select employee from sample3 where id=6;

/** another TRUE or FALSE output to the file **/
我尝试使用DBMS_OUTPUT.PUT_LINE,但对如何直接分析查询语句的输出一无所知。将不胜感激任何帮助!     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)