dbms-output

DBMS_OUTPUT.PUT_LINE not printing

限于喜欢 提交于 2019-11-26 17:18:14
When executing the following code, it just says the procedure is completed and doesn't print the infomation i want it to (firstName, lastName) and then the other values from the select query in a table below. CREATE OR REPLACE PROCEDURE PRINT_ACTOR_QUOTES (id_actor char) AS CURSOR quote_recs IS SELECT a.firstName,a.lastName, m.title, m.year, r.roleName ,q.quotechar from quote q, role r, rolequote rq, actor a, movie m where rq.quoteID = q.quoteID AND rq.roleID = r.roleID AND r.actorID = a.actorID AND r.movieID = m.movieID AND a.actorID = id_actor; BEGIN FOR row IN quote_recs LOOP DBMS_OUTPUT

dbms_output.put_line

丶灬走出姿态 提交于 2019-11-26 08:33:19
问题 Does dbms_output.put_line decrease the performance in plsql code? 回答1: Every extra line of code decreases the performance of code. After all, it is an extra instruction to be executed, which at least consumes some CPU. So yes, dbms_output.put_line decreases the performance. The real question is: does the benefit of this extra line of code outweigh the performance penalty? Only you can answer that question. Regards, Rob. 回答2: Yes, it's another piece of code that needs to be executed, but

DBMS_OUTPUT.PUT_LINE not printing

╄→гoц情女王★ 提交于 2019-11-26 06:05:38
问题 When executing the following code, it just says the procedure is completed and doesn\'t print the infomation i want it to (firstName, lastName) and then the other values from the select query in a table below. CREATE OR REPLACE PROCEDURE PRINT_ACTOR_QUOTES (id_actor char) AS CURSOR quote_recs IS SELECT a.firstName,a.lastName, m.title, m.year, r.roleName ,q.quotechar from quote q, role r, rolequote rq, actor a, movie m where rq.quoteID = q.quoteID AND rq.roleID = r.roleID AND r.actorID = a