24.Use EXPLAIN PLANAnalyze SQLStatement
Explain plan is a good tool for analyzing SQL statements. It can even analyze statements without executing SQL statements. through analysis, we can know how ORACLE connects to the table, how to scan the table (index scan or full table scan), and the index name used.
You need to interpret the analysis results in the order f
Every RDBMS comes out of its own SQL features based on standard SQL. Oracle is no exception. Now, let's learn about Oracle SQL.Learning SQL is used by developers to achieve excellent business logic. It is used by managers to optimize databases.
Structured Query Language (structured query Language) is a special-purpose programming language, a database query and programming language for accessing data and querying, updating, and managing relational database systems .It does not require the user to specify how to store the data, nor does it require the user to understand how the data is stored, so different database systems with completely different underlying structures can use the same Structured Query language as the interface for dat
Please refer to:Http://www.cnblogs.com/ymj126/p/3712727.htmlOrhttp://blog.csdn.net/cselmu9/article/details/8070728Oracle 11g Client can be downloaded from the official Oracle website or at the following URL.Http://pan.baidu.com/s/1X9xDkWhat about PL/SQL developer? Heroes can also be google/baidu to the latest version.Http://pan.baidu.com/s/1X9xDkWood elder brother's articles are based on their own
Tags: c a data using the name classJust learned the basics of Oracle, so I want to find some SQL problems to practice practiced hand, so I chose this 50sql statement, because the found version is not Oracle, so try to use Oracle to achieve.This blog post is mainly to record
to the constraint in a way that modifies the field, and the other is identical. change the name of the constraint : A non-null constraint is not a name, So other constraints can be modified by the following syntax: ALTER TABLE table_name RENAME CONSTRAINT old_name to new_name; data dictionary (user_constraints) is available for viewing. To Disable a constraint : Non-null constraints do not need to be disabled, The disable syntax for other constraints is: ALTER TABLE table_name disable| Enable C
the subquery, if the subquery is empty, then nothing will be inserted.4, the climax is coming--after removing the where in the subquery, that is, the select condition is definitely a value, it actually inserts all the records in Table E. Ah, fortunately the test library, the amount of data is small, but also executed 5s. Well, that's unusual. Delete all! Depending on the result set insert or need to be cautious ah, otherwise how much garbage data in practic
Tags: delete byte style file ODI nvarchar max Ott start1. Data Definition: A symbol that describes a thing. For example: text, audio, and video are data. 2. Database Storage of Data Warehouse, stored in the computer, in a certain format, can be shared for users. 3, the development stage of the database 1. Mesh Database 2. Hierarchical database 3. Relational database (current mainstream database) 4. Object Database 4. NoSQL Database 4. Oracle Databa
The Oracle tutorial being looked at is: PL/SQL implementation of Oracle database task scheduling. Absrtact: This article mainly on the database recovery and system task scheduling, combined with the general database background processing experience, put forward a more practical and innovative solutions, broaden the background of the development of the database of
Oracle SQL Tuning Health Check ScriptWe focus on the performance of database system, the main task of database tuning is to optimize SQL. Good data architecture design, with application system middleware and writing a beautiful SQL, is the future of the system on-line no fatal performance problems of the strong guarant
It is said that the use of Hibernate framework can easily enable your research and development platform to support a variety of different types of databases, but the practice shows that the "easy" here is relative.It's not a simple thing to have a research platform that supports multiple databases, but it can be said that it's not possible to do so with the hibernate framework.The following is a record of the process and some sentiment I have done thi
nextval will increment the value of sequence once, so if you use multiple nextval in the same statement, the value is different. 3. Modify the sequence alter SEQUENCE You are either the owner of the SEQUENCE or have alter any SEQUENCE permission to change the SEQUENCE. You can alter all SEQUENCE parameters except start to. If you want to change the start value, you must DROP SEQUENCE and recreate the SEQUENCE. Alter SEQUENCEALTER SEQUENCE cux_demo_sequenceINCREMENT by 10MAXVALUE 10000CYCLE--fro
Tags: oracle plsql performance Language SQLThese days to see the Oracle PL/SQL Real-combat this book, out of the study of the performance of the statement, the downstream standard on the impact of the code.1. Progressive processing The program declares a cursor c1, and then implicitly opens the cursor with a cursor for loop, the program queries the Customers tab
oracle| Performance | optimization
24. Analyze SQL statements with explain plan
EXPLAIN Plan is a good tool for analyzing SQL statements, and it can even parse statements without executing SQL. By analyzing, we can see how Oracle joins tables, how they scan tables (index
,nvarchar, primary key (name))--Create sequence BEGIN IF EXISTS (SELECT * From sysobjects WHERE name = ' student_seq ') DROP SEQUENCE student_seq END CREATE SEQUENCE student_seq MINVALUE 1 MAXVALUE
999999999999999999 START with 1 INCREMENT by 1 CACHE 20;
GO BEGIN IF (object_id (' wmy ', ' tr ') is not null) DROP trigger wmy END; GO CREATE TRIGGER wmy on Student instead of insert as BEGIN Insert to Person (num,s_score,s_name) Select Next value F or Student_seq,score,name from Inserted--This is
and stores that data in the record. Note that the fields in the record should match the fields in the query results list. SELECT Studentid,firstname,lastnameInto V_studentinfofrom students where studentid=32;2.3 Using %rowtype It is common practice to declare a record in PL/SQL as a database row of the same type. PL/SQL provides the %rowtype operator, which make
(belonging to understanding knowledge)
Desc user_views;
Select text from user_views where view_name= ' test1_v1 ';
The diagram is equivalent to a SELECT statement that defines an illustration that defines an SQL statement that does not occupy space, and that using view does not improve performance, but simplifies the SQL statement
(Extended Knowledge: Oracle 8i
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.