Sequence
In order to write stored procedures in the work,. At the same time, I'm going to write a study note on "Mastering Oracle 10g Pl/sql Programming" (Water Conservancy and hydropower).
Can you write all this:
Data Query Language--select
Data Manipulation Language--insert,update,delete
Transactional control Language--commit,rollback,savepoint
Data Definition language--create table,alter table,drop TABLE
Data Control Language--grant,revoke
In a job interview, I failed to answer such questions. Wanted only to be ashamed, without him.
Pl/sql can combine SQL statements into chunks, a single transmission, and reduce network overhead, which is not as good as using SQL Server in the past.
PL/SQL block Structure
DECLARE
/* Definition Part * *
BEGIN
/* Executive Part * *
EXCEPTION
/* Exception Handling Section * *
End; /* block end tag, here is a semicolon * * *
///////* This is the Terminator on the command line. *
Four-block type
Anonymous blocks, named blocks, subroutines (procedures, functions, packages), triggers
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.