PL/SQL has three types of exception errors1. Pre-defined errorsOracle has approximately 24 predefined exception errors that are not defined in the program and are automatically raised by Oracle.2. Non-predefined errorsOther standard Oracle errors
Transaction:A transaction is a set of related actions performed as a single logical unit of work.These operations require all or none of them to be completed.Reasons for using transactions: Ensure data is safe and effective.Four characteristics of a
Oraclewindow functions in supportrow_number (), its usage andMSSQLServer2005in the same way as weperform the followingSQLstatement:SELECT * from(SELECTrow_number () over (ORDER byfsalaryDESC) Row_num,Fnumber,fname,fsalary,fage fromT_employee)
I. VARCHAR2 (10) and number should be converted why type?When Oracle turns into MySQL:VARCHAR2 (10) can be turned into varchar (10)Number depends on what type of data is stored in Oracle:1, if the integer type, then MySQL, with an int can be;2, if
Oracle Statement Optimization 1Optimization is choosing the most efficient way to execute SQL statements. The Oracle Optimizer chooses what it deems most effectivemethod to execute the SQL statement.1. Is null and is not NULLIf a column has a null
1. PL/SQL Interpretation Plan windowAdvantages: AspectsCons: See limited information2. Explain_plan forEasier to optimize for a sentence3, SqlplusEnter the command in Sqlplus:Set Autotrace onSELECT * from EMP;After the data is displayed, follow the
INSTR Usage:INSTR (string,substring,position,ocurrence)Explanation: string: source stringSubString: substring to findPosition: The start position of the lookup. If the starting position is 0, the return value is 0, and when the starting position is
For the sake of convenience, the following simple models are established and some test data are constructed:In a business admissibility subsystem BSS,SQL Code
--customer data sheet
Create table customers
(
customer_id
When your application has called the stored procedure, and the node has dozens of or hundreds, the wrong is not a very troublesome thing, this time, I suggest to write to the database, below is a demo I do.1. Create an error log record tabledrop
In many cases, a database is just a few blocks of data file corruption. In this case, of course, we use database recovery or data file recovery to solve the problem. But the feeling of a little flak hitting the mosquitoes. Fortunately, Rman provides
Many of these days work around Oracle functions, and here's a summary of the functions that have been used in the work these days. In fact, it is not a summary, is to use these days for Oracle to make a simple list of knowledge.
Returning data
These days to install an Oracle database, work needs, start, to the official website to download a latest version of, now is July 30, 2015, ah, the latest is 12g that version, installed a long time not installed on, finally gave up, installed a
Ora-01034, ora-27101 troubleshooting
Error cause:
Solution: ora-27101
There may be 2 scenarios, which may lead you to encounter ORA-271011) Invalid ORACLE_HOME and ORACLE_SID (configured in environment variables)2) Database is down (check
Oracle hierarchical query and Oracle hierarchical Query
The syntax for Oracle hierarchical query is as follows:
The following are based on two questions:
1. according to the chronological order, the English names of the twelve constellations are
Sort common e functions, oracle Functions
Recently I learned about Oracle databases and often encountered Oracle database functions. After careful consideration, I summarized some common Oracle database functions.
----------------------------------
Mysql, SQL server, oracle Database paging query and Analysis (Operation Manual), mysqloracle
1. mysql paging Query
Method 1:
select * from table order by id limit m, n;
This statement means to query m + n records, remove the first m records, and
Oraclebetweenand Boundary Problems
-- Create a table create table test_hsj (id int primary key, num varchar2 (12), regDate date) select * from test_hsj; -- insert test data insert into test_hsj values (1, '1', to_date ('2017-05-01 ', 'yyyy-MM-dd')
Accessing other Oracle database data from Oracle Data
Create a database link in the local oracle databaseDrop database link mydblink;Create database link mydblink connect to zszq identified by "zszq" using '192. 168.0.175: 192/orcl ';
SQL> DROP
How to query duplicate data and delete duplicate records in Oracle
For example, there is a personnel table (table name: peosons) drop table PERSONS; create table PERSONS (PNAME VARCHAR2 (50), CARDID VARCHAR2 (18), ADDRESS VARCHAR2 (100 )); insert
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service