ORACLE PL/SQL Exercise (i)

Source: Internet
Author: User

High-performance PL/SQL

Assuming the code meets functional requirements, PL/SQL code needs to meet 3 conditions to become efficient:

1. Performance: The operating time is within an acceptable range.

2. Impact: It does not disrupt (or weaken in some unacceptable way) any other component of your system.

3. Provable: You can prove that, under all reasonable conditions, the code will not break the above performance and then affect. In short, even if you want to be destructive you can't do it.


Using bound variables

SELECT ' &x ' from dual;


Executes a PL/SQL block


BEGIN

Dbms_output. Put_Line (' Hey look,ma! ');

END;

/

Or

exec dbms_output.put_line (' Hey look,ma! ')


This article from "Technology Station" blog, declined reprint!

ORACLE PL/SQL Exercise (i)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.