What is the Pl/sql program
In the 4th chapter, the standardized SQL language is used to perform various operations on the database, and only one statement can be executed at a time, with a semicolon in English. To end the identity, this is inconvenient to use, and inefficient, because the Oracle database system is not like VB, VC, such as programming language, it focuses on the management of the background database, so the ability to provide a weak p
Tags: manipulating SQL data types Java class subclass properties variable Erro except defining variablesI. What is PL/SQL?PL/SQL (procedural language/structure Query Language) is an oracle extension to the standard SQL specification that fully supports SQL data operations, transaction control, and so on.Ii. the rules for the preparation of PL/SQL1. Naming rules f
Introduction: Oracle DatabaseThere is no constraint. Oracle databases must comply with certain rules. As we all know, few of us work in isolation; most PL/SQL development work is carried out in a relatively large organization. But we basically work with our own device in our own compartment. Almost no PL/SQL development team performs formal code review or system testing.
1. Strictly follow naming convention
Abstract: In the PL/SQL development process, SQL, PL/SQL can be used to meet most of the requirements. However, in some special cases, standard SQL statements or DML statements in PL/SQL cannot meet your needs. For example, dynamic table creation or an uncertain operation must be performed dynamically. This requires dynamic SQL. This article describes how to use
1.1 PL/SQL Introduction
PL/SQL is a procedural language of ORACLE, including a complete set of data types, condition structures, cyclic structures, and Exception Handling structures. PL/SQL can execute SQL statements, PL/SQL functions can also be used in SQL statements.
1.2 create
Tags: ber 11g formatted first character BMS type multi-line loop control other----------------------------the composition of PL/SQL------------------------------------------------------------The PL/SQL block consists of 3 parts: Declaration part, execution part, exception handling part[DECLARE]--declaration section: the variables, types and cursors used in this declaration, and local stored procedures and f
The previous blog introduced how to use the Navicat tool to back up Oracle. This blog introduced how to use the PLSQLDeveloper tool to import and export Oracle databases. PLSQLDeveloper is one of the main tools used by Oracle databases to import and export databases. This article mainly introduces the process of using PLSQL to import and export Oracle databases. 1. Oracle count
The previous blog introduced how to use the Navicat tool to back up Oracle. This blog introduced how to use the
Document directory
Record and PL/SQL tables
Record and PL/SQL tables
1. What are record and PL/SQL tables?Record: a temporary record object type consisting of a single row and multiple columns of scalar type. Similar to multi-dimensional arrays.PL/SQL table: a temporary index table object type consisting of multiple index columns and available columns. Similar
PL/SQL exceptions
The pre-defined exceptions and codes of PL/SQL are as follows:Exception Oracle error sqlcode Value MeaningAccess_into_null ORA-06530-6530 the referenced object is assigned directly to the object without InitializationCase_not_found ORA-06592-6592 if no case in the when clause contains no required branch and no else clauseCollection_is_null ORA-06531-6531 set element (nested table or varray
For beginners, Oracle's database language PL/SQL is always a bit strange. It is called a host language and, as its name suggests, it is dependent on something to survive, PL/SQL is attached to the Oracle database, and its runtime environment is the Oracle database.
This is a little different from other languages, so many beginners feel difficult to understand. At first, more people think of it as just a sc
Abstract: In the PLSQL development process, the use of SQL and PLSQL can meet most of the requirements, but in some special circumstances, using standard SQL statements or DML statements in PLSQL cannot meet your needs. for example, dynamic table creation or an uncertain operation must be performed dynamically. This requires dynamic SQL. This article describes PLSQL in detail through several examples.
Abstract: In the PL/SQL development process, SQL
Dynamic Content Summary: In the Pl/sql development process, the use of sql,pl/sql can achieve most of the requirements, but in some special cases, the use of standard SQL statements or DML statements in Pl/sql can not achieve their own needs, For example, the need to dynamically build a table or an indeterminate operation requires dynamic execution. This needs to
I. PL/SQL tableThe PL/SQL table has only two columns, where the first column is listed as an integer type and the second column is the user custom.Defined:TYPE is TABLE of Types of [Not NULL] INDEX by Binary_integer;The type of Property Method:. Count-Returns the total number of rows in a PL/SQL table. delect--Delete all the contents of the
Oracle----PL/SQLPL/SQL is a programming language that combines process language (procedural Language) with Structured Query Language (SQL)PL/SQL is unique to Oracle, and is an extension to the. Different database vendors have similar "dialects" that provide new features.Supports multiple data types, such as large objects and collection types, with control structures such as conditions and loopsCan be used t
Label:1. The infrastructure of a PL/SQL block DECLARE /* * Definition section--Define constants, variables, complex data types, cursors, user-defined exceptions */ BEGIN /* * Execute partial--PL/SQL statements and SQL statements */ EXCEPTION /* * Exception Handling section--handling run errors */ END; /* Block end tag */ 2. Using variables and constants1) Variable and constant A can be used in a
Tags: java int c COM data usageOracle PL/SQL language (procedural language/sql) is a combination of structuredQuery and Oracle's own process control as one of the powerful language, PL/SQL not only support more data types, with self-Variable declarations, assignment statements, and conditions, loops, and other process control statements. Process Control structure and SQL numberThe seamless combination of pr
PL/SQL indicates the SQLProcedural Language extension(Procedural Language extension to SQL ). By adding the programming structure and sub-Program, PL/SQL to expand SQL.
Realize that PL/SQL is not independentProgramming LanguageIs very important. PL/SQL is a part of Oracle RDBMS and can reside in two environments-clien
Tags: PL/SQL Exception handling methods 1: What is exception handling: PL/SQL provides a function to handle exceptions, called exception Handling in PL/SQL blocks, and exception handling we can test the code and avoid exception exits. PL/SQL exception information consists of three parts: 1: Exception type NBSP;
1. knowledge point: you can read the following screen recording:
PL/SQL program structure declare description (variable description, cursor declaration, exception description) begin statement sequence (DML statement 〕... Exception Processing statement End;/-------------------------------------------------------------------- first PL/SQL program: HelloWorldset serveroutput on -- if you want to output informa
PL/SQL Exception Handling Method 1: What is Exception Handling? PL/SQL provides a function to handle exceptions, which is called Exception Handling in PL/SQL blocks, with exception handling, we can test the code and avoid abnormal exit. The PL/SQL exception information consists of three parts: 1: exception type 2: Erro
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.