so that exceptions can be caught? We can use strings.
SQL> create or replace procedure TEST
2
3 I varchar2 (10 );
4 begin
5 execute immediate 'select err from t where rownum
6 into I;
7
8 exception
9 when others then
10 dbms_output.put_line ('errors Catch! ');
11 end;
12/
Procedure created.
Execute immediate can directly execute string-type SQL statements. If the stored procedure is successfully created,
Tags: PNG integrated user create unified end logs style capitalizationIntroduction to PL/sql: Plsql is a process language that Oracle expands on the basis of SQL. Plsql provides typical high-level language features, including encapsulation, exception handling mechanisms, information hiding, object-oriented, etc., and brings the latest programming ideas to the dat
:
Because of the differences in the internal structure of Oracle, object management is difficult, especially in parallel development.
? The division of object responsibilities is unclear, causing multiple users to modify an object at the same time. During compilation, if the later developer does not obtain the latest code, the code modified by the previous developer will be overwritten.
? Oracle Objects can
Before you start
About this series
This series, which contains 6 DB2 SQL Procedure Developer tutorials, covers all the basic structures and methods of SQL procedural Language (SQL PL) and shows how to store procedures, user-defined functions, and triggers, Includes the use
transmission methods for parameters:
Deliver by location
Exec add_emp (1111, 'Mary ', 2000, ''manager', 10 );
Pass by name
Mixed Transfer
3. the syntax of the stored procedure parameter mode is as follows:
Storage name in | out | in out datatype: = value assignment;
4. Stored Procedure access permission
----- Grant a permission to execute emp
Grant execute no add_emp to
------- Revoke permissions
Revoke execute on add_emp from;
5. delete a stored procedure
Drop procedure storage name;7. debugg
oracleoradb 10g_home1isql * Plus service in the Windows service. To manage iSQL * plus, you only need to execute isqlplussvc.exe-start 5580in the ms-doscommand prompt to start the service worker and execute isqlplussvc.exe-stop to stop the service. The iSQL * Plus user interface runs in a web browser. You do not need to install and configure it separately. To start iSQL * Plus, you can find its URL in the readme.txt file of oracle_base/ORACLE_HOME/installdirectory. For example, the URL of D:/Or
;(2.) parameters are passed in three ways:Pass by locationExec add_emp (1111, ' Mary ', ' a ', ' manager ', 10);Pass by nameMixed Mode delivery3. The stored procedure parameter pattern syntax is as follows:Storage Name In|out|in out datatype: = assignment;4. Stored Procedure access rights-----grant a The ability to perform an EMPGrant Execute no add_emp to a-------Revoke PermissionsRevoke execute on add_emp from A;5. Delete a stored procedureDrop procedure Storage Name;Seven: Debugging and track
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/
Label:
After a piece of SQL code is written, you can initially predict the performance of the SQL at run time by looking at the SQL execution plan, especially if you find that the SQL statement is inefficient, we can analyze the problem of the SQL code by looki
talbes->oracle Import and then importing the DMP fileSome notes:Tools->export User Objects exports the build table statements (including the storage structure)Tools->export tables contains three kinds of export methods, three ways can be exported table structure and data, online said three ways are different, as follows:? Oracle Export?SQL Insert?PL/SQL Develope
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
Basic PL/SQL settings 1. How to export table creation statements in batches? Select [Tools]-> [Export User Objects...] from the menu, and select the table to be exported in the window that appears. The SQL script exported in this way does not contain insert statements, that is, the data in the table is not exported at the same time, only DDL statements. 2. How to
condition. User-defined exceptions are defined by the developer display, passing information in a PL/SQL block to control error handling for the application. An internal exception is implicitly generated whenever PL/SQL violates the principles of Oracle or the principle
Original Title: Oracle and PL/SQL recipes: a problem-solution approach Author: (US) Josh Juneau Matt arena Translator: Political Commissar Name: turing Program Design Series Press: People's post and telecommunications Press ISBN: 9787115320766 Release Date: June 2013 publication date: 16 open pages: 376 versions: 1-1 category: computer> database> Oracle more about "Oracle
Label:1. Configuring SQL Developer Management ToolsThis omits the installation steps for the Oracle database and PL/SQL Developer, and note that when you install the PL/SQL
The ORACLE tutorial is: Oracle uses PL/SQL to operate COM objects. PL/SQL is a specialized language for programming in Oracle databases. It is a third-generation procedural programming language. Starting from Oracle8, the external C language calling process is provided direc
Tags: style http color os using Java AR Data code1. What is PL/SQL?PL/SQLIt is also a programming language called the Process SQL language (procedural language/sql). PL/SQLis aOracle DatabaseAn extension to the
Introduction to PL/SQL Program Design
① PL/SQL program design overview
PL/SQL is an advanced database programming language used to access Oracle databases in various environments. Since the language is integrated into the database
PL/SQL indicates the SQLProcedural Language extension(Procedural Language extension to SQL ). By adding the programming structure and sub-Program, PL/SQL to expand SQL.
Realize that PL
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.