Oracle SQL advanced programming learning notes (I) Core SQL statement 1, select statement execution sequence
5 SELECT
(1) first execute the clause or link clause after the From clause to query the initial dataset. (2) execute the where clause to streamline the initial result set, query the dataset that meets the where condition from the initial dataset. (3) ex
Oracle optimizations are generally divided into:1. SQL Optimization (Oracle now performs the necessary optimizations based on SQL statements, which should not be user-like, but must be and affect performance as correlated and nested queries)A, the condition of the SQL statem
PL/SQL enhancements in Oracle 12c
Oracle 12c enhances a series of methods for defining and executing PL/SQL program units. This article covers several new features of Oracle 12c:
1. optimized the caller permission function for the result cache condition.2. PL/
)The results and execution time of the preceding four sqls are the same after ORACLE analysis, but the principle of shared memory SGA from ORACLE is as follows,It can be concluded that ORACLE will analyze each SQL statement and occupy the shared memory,If the SQL string and
Index is a powerful weapon to improve database query performance. No index, just like the library without book tags, find a book they want to book than Heaven is difficult. However, in the process of using the index, especially in the case of batch DML, the corresponding fragments will be produced, and the B-tree height will change accordingly, so that these chan
Oracle SQL * plus is a client tool that interacts with oracle. In SQL * plus, you can run the SQL * plus command and the SQL * plus statement.
The DML, DDL, and DCL statements we usually call are
If an online e-commerce system, we now need to be based on the order form reflected in the consumption of the customer simply divided into three categories of large and small and inserted into three tables.
Order Form orders (order_id number, cust_id number, amount number);
Small Customer table Small_cust (cust_id number, tot_amt number);
Customer table Med_cust (cust_id number, tot_amt number);
Large Customer table Big_cust (cust_id number, tot_amt number);
If the total consumption amount
Tags: Tips control oracl Programmer Practice Union Multiple full table scans causeI. Use of the SQL language1. in operatorThe advantages of SQL in write are easier to write and easy to understand, which is more suitable for modern software development style.But SQL performance with in is always lower, and the steps taken from
Oracle SQL * plus is a client tool that interacts with oracle. In SQL * plus, you can run the SQL * plus command and the SQL * plus statement. The DML, DDL, and DCL statements we usually call are
Oracle SQL Performance Optimization
(1) select the most efficient table name sequence (only valid in the rule-based Optimizer ):
The ORACLE parser processes the table names in the FROM clause in the order FROM right to left. The table written in the FROM clause (basic table driving table) will be processed first, when the FROM clause contains multiple tables, You
Label:Transfer from http://blog.sina.com.cn/s/blog_614b6f210100t80r.htmlI. Create a SQL Server linked service (SQL Server link Oracle) First SQL Server link Oracle can have two access interfaces:"Msdaora" and "OraOLEDB.Oracle"1. The "MSDAORA" Access interface is provided by
Many students on the optimization of SQL seems to know very little, recently summed up the following 34 articles for reference only.
(1) Select the most efficient table name order (valid only in the Rule-based optimizer):
The Oracle parser processes the table names in the FROM clause in Right-to-left order, the last table (driving table), which is written in the FROM clause, is processed first, and in the
oracle| Performance | optimization | statement
1. Choose the appropriate Oracle OptimizerOracle's optimizer total of 3 kinds
A, rule (rule-based) B, cost (based on costs) C, CHOOSE (optional)
set the default optimizer to pass various declarations of optimizer_mode parameters in the Init.ora file, such as Rule,cost,choose,all_rows,first_rows. You will of course overwrite it at the
Structured Query Language (SQL) is a common Language used to access relational databases. It is a fourth-generation Language (4GL) and its execution features are non-procedural, that is, you do not need to specify the specific method and method of execution, but simply call the corresponding statement to directly obtain the result. Obviously, this language that does not focus on any implementation details is very convenient for developers. However, so
how to create a session-level temporary table.Create global temporary table admin_work_area(Startdate DATE,Enddate DATE,Class CHAR (20 ))On commit preserve rows;EXAMPLE:
Session 1:SQL> drop table admin_work_area;SQL> CREATE GLOBAL TEMPORARY TABLE admin_work_area2 (startdate DATE,3 enddate DATE,4 class CHAR (20 ))5 on commit preserve rows;SQL> insert into permern
Tags: Oracle administrator shared database userOracle SQL performance Optimization in layman'sOracle holds executed SQL statements in a shared pool of memory, which can be shared by all database users. When you execute an SQL statement (sometimes called a cursor), if it is exactly the same as the previous executed stat
, Oracle converts ' * ' to all column names, which is done by querying the data dictionary, which means more time is spent (4) reduce the number of access to the database:Oracle has done a lot of work internally: Parsing SQL statements, estimating index utilization, binding variables, reading chunks, and so on; (5) in Sql*plus,
In the industry, Oracle databases are generally considered to be more secure than SQL Server databases. Next I will talk about the similarities and differences between the two databases in terms of security design. Mastering these contents plays an important role in designing and managing database security. I. role-to-user authorization many applications, including databases
In the industry,
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.