ORACLE PL/SQL Instance fine solutions in the first chapter PL/SQL Concepts

Source: Internet
Author: User

1. Traditional layer by layer data, and Plsql as a separate unit to return to the client, reduce the query, reduce the network transmission of the round trip, funny

2.pl/sql statement blocks are divided into two types: naming (subroutines, functions, packages that exist in the database, and later can be referenced by name), Anonymous

Difference: A named statement block is stored in a database, referenced by a name, and an anonymous statement block does not have a name, does not exist in the database, and cannot be referenced later

The PL/SQL statement block is divided into three parts: declaration, executable (executable must exist), exception

A declaration is a definition of a variable, a constant, a semicolon, a definition of an identifier, a normal amount, and a cursor reservation declare

Executable is a reserved word begin and end and select. A.. Into. V_a. From XX is to assign the value of a query to the variable v_a

Exception: reserved word exception

5. How to perform PL/SQL

5.1 Substitution variables in front of the variable & or && A: = &b, with the substitution of variables because the PL/SQL statement block can receive input information, cannot enter a value, not divided into any space

ORACLE PL/SQL Instance fine solutions in the first chapter PL/SQL Concepts

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.