Oracle Database PLSQL learning summary, oracleplsqlPLSQL Introduction
PLSQL is an extension of SQL99 in Oracle., Basically every database will expand SQL. Oracle's extension to SQL is called PLSQL...
What is SQL99?
(1)Is the rule for operating all
Prepare the article
Col empno for 9999;Col ename for A10;Col job for A10;Col Mgr for 9999;Col hiredate for A12;Col Sal for 9999;Col Comm for 9999;Col deptno for 99;Col Tname for A40;Set pagesize 80;
1. SQL vs PlsqlWhat is
There are two types of cursors:
Display cursor, implicit cursor
Cursor is used to display the cursor... the is command defines the cursor, which can process multiple records returned by the query statement (select), while the implicit cursor is
The syntax of plsql is different from that of tsql. For more information, see.
The syntax of plsql is different from that of tsql. For more information, see.
Insert into testtable (recordnumber, currentdate) values (I, sysdate );
Print '';
Select @
Four steps for displaying the cursor in PLSQL this example briefly introduces the locking and consistent read problems involved in the four processes of the cursor processing. explicit cursor processing requires four PL/SQL steps: www.2cto.com 1
Insert into testtable (recordnumber, currentdate) values (I, sysdate );
Print '';
Select @ I = @ I + 1;
End;
After comparison, we can see that it is different.
The command structure in plsql isDelacreDefine statement segmentsBeginExecution
Insert into testtable (recordnumber, currentdate) values (I, sysdate );Print '';Select @ I = @ I + 1;End;After comparison, we can see that it is different.The command structure in plsql isDelacreDefine statement segmentsBeginExecution statement
Explain the stored procedures of Oracle and PLSQL.1. Create a stored procedure in plsql
Open plsql, right-click procedures, and create.
If the creation is unresponsive
Direct file-New-program window-blank, create a program windowStored Procedure
This example briefly introduces the locking and consistent read problems involved in the four processes of cursor processing.
Explicit cursor processing requires four PL/SQL steps:
1. Define/declare a cursor: defines a cursor name and the SELECT
Insert into TestTable (recordnumber,currentdate) values (i,sysdate);
print ';
Select @i=@i+1;
End
You can tell by comparison that it's different.
Plsql inside the structure of the command
Delacre
Define a statement segment
Begin
Execute a
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.