consumption of 500 mb of PGA memory, in addition to the memory allocated to the SGA.
Fortunately, PL/SQL makes it easy for developers to control the amount of memory used in a bulk collect operation by using the limit clause.
Suppose I need to retrieve all the rows from the employees table and then perform some compensation Analysis on each row. I can use Bulk collect as follows:
PROCEDURE process_all_row
Working with Dates in PL/SQL (date used in PL/SQL) The previous articles in this introductory PL/SQL series focused on working with strings and numbers in PL/
Working with Numbers in PL/SQL (use numbers in PL/SQL) This article gives you all the information you need in order to begin working with Numbers in your PL/SQL programs. numbers in PL/
This article gives you all the information you need in order to begin working with numbers in your PL/SQL programs.Numbers in PL/SQL
PL/SQL offers a variety of numeric datatypes to suit different purposes:
Number. A true decimal
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/SQL
11g for optimized compilation 2088.6 conclusion 209Chapter 2 calling PL/SQL 9th from SQL9.1 cost of using PL/SQL functions in SQL 2109.1.1 context switch 2119.1.2 run 2169.1.3 less ideal data access 2189.1.4 difficulties of optimizer 2229.1.5 trap of read consistency 2269.1
normal.
After testing, the problem was found. The previous environment was 64-bit Windows 7 + 32-bit Oracle 11gr2, and oracle was changed to 64-bit 11gr2. This cause may be related to the version, because it cannot be ruled out by some unknown factors solved by the re-installation.
The test results are as follows:
3. The difference between the two examples is that example 1 does not modify the PL/
, the program immediately stops executing and goes to execute the exception handler.After the exception is processed, the execution of the entire PL/SQL block ends. So once an exception occurs, in the executable portion of the PL/SQL block, starting at the place where the exception occurred, the future code will no lon
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/
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 PL
Label:http://uule.iteye.com/blog/2061773 (source) Bulk Import Script : Open a Command Window > enter @ > It will let you select the file you want to import (you need to know the order of the imported files, Plsql will not automatically recognize this or write a script like LS) such as: @d:\svn\1.5 database Script \oracle\import2.sql http://blog.csdn.net/hbhgjiangkun/article/details/8208565 1, PL/
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
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/SQL Dev connection to Oracle dialog box displayed
64-bit win7 pl/
parameters as input (output) , or both as input and output (INOUT) , unlike functions, The stored procedure does not return a value of , stored procedure cannot be sql statements are used directly, only through the call keyword/ execut command or pl/sql block Internal call , the syntax for defining a stored procedure is as follows:
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
and Testing
This problem is more intuitive and confusing, but there are still conceptual barriers after careful analysis. This is the compile time and run time of the program.
When we compile a PL/SQL program, both procedure and package have a compile action. After the compile operation is successful, we can execute the program exec. In compile, the work is similar to that in any language compiler.
Most of
empwhere empno=7788;Endsql> Print name;NAME--------------------------------SCOTT2. Use the Procedure Builder variableWhen referencing the Procedure Builder variable in a PL/SQL block, you must first define the variable with the CREATE command, and if you output the variable contents in Procedure Builder, you can use the package text_io.pl/sql> CREATE CHAR name L
concept is put forward here because it is very important in PL/SQL programming. The syntax structure for defining the cursor is as follows: cursor cursor_name is SQL statement;IV. Other Concepts
The concept in Oracle PL/SQL is very important. It is mainly to encapsulate a g
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.