Some problems occurred when using ORACLE in the actual project. The problem is avoided through the work und. I wrote this article to make it easy to use!
1. ORA-01403: no data found-NO DATA FOUND
A. Add an exception to handle the exception.
Code
Source code:
1. Create an object typeCREATE OR REPLACE
Type ty_usernum as object
(
Seq_call_usernum number,
Calltype number,
Areacode varchar2 (10 ),
Usernum varchar2 (20)
)
/
2. Create a collection typeCreate or replace type ty_tbl_usernum is
A user-defined function is a code block stored in a database. It can return the value to the calling program. The call is like a system function, such as a max (value) function. value is called a parameter. There are three types of function
Oracle does not have the if exists (...) syntax. Currently, there are many solutions. Here we first analyze the three commonly used methods. We recommend that you use the last one.
The first type is the most commonly used. Determine whether the
Requirements:
1. Develop a batch release ticket Program
2. At the same time, there can only be one session release for the same org ticket
Solution:
1. (when-New-form-instance) when the program is opened, delete the records that are not cleared due
The use of any language or technology is the final principle. Why should we use stored procedures? Not applicable? Is there anything better than a stored procedure ?, With these series of problems, we can enter the use stage of the stored procedure.1
Document directory
Questions about Oracle Stored Procedure
Stored Procedure creation Syntax:
Create or replace procedure stored procedure name (param1 in type, param2 out type)
As
Variable 1 type (value range );
Variable 2 type (value range
Document directory
Stored Procedure
Stored Procedure creation Syntax:
Stored Procedure
1 create or replace procedure stored procedure name
2 is
3 begin
4 null;
5 end;
Row 1:
Create or replace procedure is an SQL statement that notifies the
I. restore disk space
In PostgreSQL, the data rows deleted or updated using the delete and update statements are not actually deleted, the physical address of the old data row sets the row status to deleted or expired. Therefore, when data in a
Sometimes, when inserting a database, we may insert duplicate data, but do not want
Modify existingProgram, We can use triggers to avoid modifying programs and solve problems directly in the database.
Test procedure:
1. First, create a test
Source: workshop?
It is to tell the MySQL interpreter whether the command has ended and whether MySQL can be executed.By default, Delimiter is a semicolon;. In the command line client, if a command line ends with a semicolon,After you press enter,
From: http://rdc.taobao.com/blog/dba/html/124_oracle_data_transfer.html
Author: Ding yuan
For high-concurrency OLTP systems, the production database may only need to retain the data for the current few months, and all the previous data must be
I used the OLE Control of pb10 and IE as an embedded browser,Execute some simple URL calls (using the navigator2 function) and page parsing.This ole control is in the window. I found some problems:1. After the window is closed, the memory will not
To simulate the real environment, consider comparing multiple performance indicators in the case of concurrent use of Bound variables and not bound variables.
Statspack is used for testing. If this tool is not installed, refer to Oracle9i database
MySQL search: WHERE, mysql search where
You can use the where condition to search by specifying a Search Condition in MySQL.
In a SELECT statement, data is filtered based on the conditions specified in the WHERE substatement. The WHERE substatement
Oracle Learning (12): stored procedures, functions and triggers, and oracle stored proceduresStored Procedures and functionsL The subroutines stored in the database for all user programs to call are stored procedures and stored functions.Note: When
We often traverse the system tables in the data dictionary to write SHELL scripts or dynamically create data. Here I use PLSQL to demonstrate three methods to traverse a table.
The table structure is as follows,
t_girl=# \d tmp_1;
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.