Alibabacloud.com offers a wide variety of articles about best book for oracle pl sql programming, easily find your best book for oracle pl sql programming information here online.
/SQL and the database version. I also want to introduce some more detailed advanced concepts throughout the book, and at the end of this chapter I will explain some of the database tables we use in the case of this book.1.1 SQL and PL/sql1.1.1 what is
=spno;End-----3. How to call in Java---1. Create CallableStatement CS =ct.preparecall ([Call Sp_pro9 (?,?)]);----Cs.setint (1,10);----Cs.registeroutparameter (2,oracle.jdbc.oracletypes.cursor);--run--cs.execute ();--Get the result set/*resultset rs= (ResultSet) Cs.getobject (2);while (Rs.next ()) {....}*/---------------------Exception Handling---------Case_not_foundData_not_foundCursor_already_openDup_val_on_index Unique index repeatedInvaild_cursor run operation on an illegal cursor for example
Today, I am working on an OA report. I use a stored procedure to calculate some data. When doing a for xxx in xxxx loop end loop; loop, I never knew it was Mao. I can't catch the no_data_found exception in for any more. Once this no_data_found Oracle occurs, it automatically jumps out of the for loop, but I don't know what went wrong, that was depressing for an hour. Shit. Later I remembered that pl/
Today, I am working on an OA report. I use a stored procedure to calculate some data. When doing a for XXX in xxxx loop end loop; loop,
I never knew it was Mao. I cannot catch the no_data_found exception in for any more. Once this no_data_found occurs
Oracle will automatically Jump Out Of The for loop, but I don't know where the error occurred. It was a depressing hour. Shit.
Later I remembered that PL
match.Then I wrote an example:CREATE OR REPLACE PROCEDURE give_bonus (emp_no_id in number, bonus in number) AUTHID Current_userisbegin dbms_output.Put_Line (emp_no_id); Dbms_output. Put_Line (bonus); END give_bonus;/This is followed by the use of the case expressiondeclarel_salnumber; beginselectsalintol_salfromemp whereempno=7839;dbms_output. Put_Line (l_sal); give_bonus (7839, CASE whenl_sal>=1000andl_salSo it's actually an expression, and then the expression gets a result.After the introduct
1) classification of Sets
Oracle supports three types of collections:
Associative array (Index-by table)
Nested table)
Variable-length array (VARRAY)
One of their differences is that the Nested table and VARRY can be used either in PL/SQL or directly in the database, but the Associative array doesn't work, that is, associative array cannot be created separately u
Tags: col program configuration SQL query field positioning Rod AC MVCThese days encountered two problems, are very wonderful, distressed for three days, the final positioning out.Problem one, inserting data through PL/SQL developer to a remote Oracle database server, querying data through
Develop PL/SQL subprograms and packages, write triggers using PL/SQL, and Apply Oracle and pljdbc to JDBC.
1. subprograms:
Declaration, executable, and Exception Handling (optional)
2. subprogram classification:
A. Process-execute some operations
A. syntax of the creation pr
. Manipulating LOB Data Objects in Pl/sql using the package Dbms_lob provided by Oracle. LOB data types can be grouped into the following four categories:
. BFILE
. Blob
. Clob
. NCLOB
Operator
As with other programming languages, Pl/
triggersA. Enabling and disabling triggers: When to prohibit: Prohibit data import and exportsql> ALTER TRIGGER aiu_itemfile DISABLE;sql> ALTER TRIGGER aiu_itemfile ENABLE;B. recompiling a trigger: After a database object has changedC. Deleting a triggersql> DROP TRIGGER Aiu_itemfile;19. Triggers and stored proceduresTrigger Stored proceduresWrite no parameter, return value has parameter, return value (parameter)Write cannot commit or rollback canCal
locator) is stored in the original table. This locator is a pointer to the actual data. To operate LOB Data Objects in PL/SQL, use the DBMS_LOB.LOB package provided by ORACLE. The data types can be divided into the following four types:
. BFILE. BLOB. CLOB
[1] [2] Next page
The ORACLE tutorial is the basics of
types:numeric
Table 2 Character data types
Table 3 Date and Boolean
LOB data type
LOB (Large object, Large object) data type is used to store large data objects such as images, sounds, and LOB data objects can be binary or character data with a maximum length of no more than 4G. LOB data types support arbitrary access, and long only supports sequential access. The LOB is stored in a separate location, while a lob locator (LOB locator) is stored in the original table, which is a pointer to t
PLSQLPL/SQL developer is an Oracle Database DeveloperProgramIntegrated Unit Development Environment (IDE). With PL/SQL developer, you can easily create the server part of your client/server application. So far, you can do the following in the worst case:• Use a text editor to Write Program units (processes, triggers, a
Oracle PL/SQL practiceBasic InformationAuthor: (English) bilington (A.) and so on, Lu Tao [Translator's introduction]Press: People's post and telecommunications PressISBN: 9787115294852Mounting time:Published on: February 1, November 2012Start: 16Page number: 166Version: 1-1Category: Computer> database> Oracle
For more
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, funny2.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), AnonymousDifference: A named statement block is stored in a database, referenced by a
must execute
I hope this article will help you with Oracle database programming.
Articles you may be interested in:
Knowledge points for PL/SQL programs in oracle review notes
Solution to PL/
access. Lob is stored in a separate location, and a "Lob locator" (lob Locator) is stored in the original table. This locator is a pointer to the actual data. To operate lob Data Objects in PL/SQL, use the dbms_lob.lob package provided by Oracle. The data types can be divided into the following four types:. Bfile. Blob. Clob. NclobOperatorLike other
The ORACLE tutorial is as follows: Oracle PL/SQL getting started.
I. Objective of PL/SQL
Structured Query Language (SQL) is a common Language used to access relational databases. It is
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.