The ORACLE tutorial is Oracle PL/SQL getting started. I have already learned the basics of PL/SQL programming. This article will use a case study to deepen my understanding of these knowledge points.
I. Case Study
A database has two tables about employee information, salary
Tags: HTML SQL file learning Success Supplement style install technology ChineseIn front of Oracle database Learning 1 It has already been written, but I write a note about it, the original: http://www.cnblogs.com/zhangmingzhao/p/7172209.htmlinstallation of PL/SQL toolsThe first installation did not succeed, under the CSDN resources, now think of it should be tns
To use the Pl/sql program to complete a more complete database task, you need to further learn some advanced design elements of the content. The Pl/sql program that was written earlier, common to the absence of names, can only be
parameters must be configured in Connection:Oracle Home: C: \ instantclientOCI Library: C: \ instantclient \ oci. dll
Now that the configuration is complete, pl/SQL developer can be used normally.
-------------------------------------- Split line --------------------------------------
Use PL/
Tags: SQL language Data System Self programming old version png des oafPL/SQL is an integrated development environment for oralcle databases and is the primary tool for many Oracle database developers. Because PL/SQL (Baidu Encyclopedia) is not only a kind of language, but also a process programming language, in the pr
unwanted procedure, with the following syntax:DROP PROCEDURE [user.] Procudure_name;2. Delete a functionYou can use the drop function command to delete unwanted functions, with the following syntax:DROP FUNCTION [user.] Function_name;⑤ Example[Stored function: There is a return value, after creation is completed, through the Select function () from dual; execution][Stored procedure: Because there is no return value, after creation is complete, you ca
1. stored Procedures, functions, and triggers are all written in plsql. the process, function, and trigger are in the Oracle database. plsql is a very powerful database process Language 4. stored Procedures and functions can be used to call more Oracle Data in Java. video tutorial: 2.taobao.comitem.htm? Id42922011874spm686.1000925.0
1. stored Procedures, functions, and triggers are written in pl/
I. Related content1. Master the structure of PL/SQL program block, understand and familiar with the application of various variables.Second, the specific operation(i) using the system user login Sql*plus, create a user using the SQL statement: U_ your initials (for example: U_zs), the password is: T_ your number three
directory, and then in the Instantclient_11_2 directory, create a new Layer two folder \NETWORK\ADMIN, Then build a tnsnames.ora file under the Admin folder and add the following to the file:ORACLE = ( DESCRIPTION = ( ADDRESS = (PROTOCOL = TCP) (HOST = localhost) (PORT = 1521)) (Connect_data = (SERV ER = dedicated) (service_name = ORACLE) ) listener_oracle = (ADDRESS = (PROTOCOL = TCP) (HOST = localhost ) (PORT = 1521)) Oraclr_connection_data = (DESCRIPTION = ( address
an initial value to a variablev_sortname Es_sort. Sortname%type: = ' category '; --Specify the variable type and assign the initial valueV_fatherid Es_sort. Fatherid%type: = 0;BEGINLOOPINSERT into Es_sort VALUES (v_id, V_sortname | | v_id, V_fatherid);v_id: = v_id + 1;--Exit conditionsEXIT when v_id = 9;END LOOP;COMMIT;Dbms_output.put_line (' insert Success ');END;--use for loop to complete, know the number of cycles with the forDECLAREv_id Es_sort.i
I have been working on Oracle databases for more than a year. My favorite part is PL/SQL. This is Oracle's data programmable language, which can be used to combine procedural code with SQL code.
The most interesting thing is that we can use it to develop the entire application in one place. All data selection and updates, all HTTP and HTML outputs that interact w
Oracle Database: PL/SQL cursor overview, oracleplI. cursor Concept
Literally, it refers to a swimming cursor, which is a handle or pointer pointing to the context area.
When performing the CRUD operation in the PL/SQL block, ORACLE allocates a context zone for it in the memory. The database language used to describe th
1. What is the cursor?
Oracle uses two types of cursor: explicit cursor and implicit cursor. No matter how many records are returned by the statement, PL/SQL implicitly declares a cursor for each SQL command, such as UPDATE, DELETE, and INSERT. To manage SQL statement processing, you must implicitly define a cursor fo
installer Setup.exe file and click the "Next,continue" button to install the success4: Import Oracle Clientinstantclient-basic-win32-10.2.0.5 for Green Software, for: http://www.oracle.com/technetwork/indexes/downloads/index.htmlAfter the download is complete, upload to the server, unzip to the/root/.cxoffice/winxp/drive_c/program files directory, and rename instantclient where "WinXP" is the name of crossover bottle, You can also specify a new bottl
First_exception ThenWhen Second_exception ThenWhen OTHERS and END;Exception handling can be arranged in any order, but others must be placed at the end.③ pre-defined exception handlingTo deal with this anomaly, we simply refer to the exception-handling section of the PL/SQL block, directly reference the corresponding exception case name and complete the correspo
('name ='||record_person.rage); EndLoop; --Add DataFkpackage.pro_person_add (10001,'Zhangsan', -,'1343');End;Iii. Advantages of PL/SQL packagesThe package offers several advantages: modularity, ease of application design, information hiding, additional functionality, and good performance.1, modularThe package allows us to put logically related types, constants, variables, exceptions, and subroutines into a
I found a
This book starts with some of the most basic knowledge and works with easy-to-understand examples to help you get started with simple knowledge points at and then go deeper step by step, each step will be used in concert with the example to explain to you. One small step at a time is the foundation of the next step, until the usage is relatively advanced.
Oracle10g PL/SQL programming
Tags: oracle plsql cursor Explicit Leng-type cursors Use of Cursors① Cursor ConceptIn order to handle SQL statements, ORACLE must allocate a region called the context area to process the required information.This includes the number of rows to be processed, a pointer to the representation of the statement being parsed, and the active set of the query.A cursor is a handle (handle) or pointer to a context. with cursors,
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.