As we all know, MySQL InnoDB storage engine is very similar to Oracle, support transactions, row-locking, after the actual test, InnoDB and Oracle a relatively large difference point, in this test case, the same data, The InnoDB single-line storage
In general, the Oracle server is the one that holds the database. That is, the Oracle server is to some extent equivalent to an Oracle database. The client is used by users who do not install the server. For example, I don't have an Oracle database,
Preface: What can you learn through this study
Directory:
One, what is a trigger.
second, what is the application scenario of the trigger.
1. Complex security Checks
2, the data confirmation
3. Realize audit function
4, the completion of data
For example, the following command is slow to executeThe following is a code fragment:Select A.empno from emp A where a.empno does not(select Empno from Emp1 where job=′sale′);If you are using an outer join, rewrite the command as follows:The
Set Autotrace off
Set Autotrace on
Set Autotrace traceonly
Set Autotrace on explain
Set Autotrace on statistics
Set autotrace on explain statistics
Set Autotrace traceonly explain
Set Autotrace traceonly Statistics
Set Autotrace Traceonly explain
First, the phenomenon of database deadlockProgram in the process of execution, click OK or save the button, the program is not responding, there is no error.Second, the principle of deadlockWhen you perform an update or delete operation on a column
In operatorThe advantage of using in-write SQL is that it is easier to write and understand, which is more suited to the style of modern software development. However, in SQL performance is always lower, the steps that are performed from Oracle
Directory=========================================1. Introduction to Window function2. Window Function Example-all statistics3. Window function Advanced-scrolling statistics (cumulative/mean value)4. Window function Advanced-statistics based on time
When using Oracle for paging queries, we typically carry a lot of parameters. But today I found a very strange thing, when the sort field is not a primary key, and the value of the sorted field in multiple data is the same, the sort order of the
The following code can be implemented with the Pl\sql tool, and the following is how an Oracle sets automatic sequence growth
--Create a table
CreateTable Book (
BookID varchar2 (4) PrimaryKey,
Name VARCHAR2 (20)
);
--Create a
Oracle generates 1 million test data in the following ways:
Method One: Create a table, add 1 million data at the same time, code:
CREATE TABLE TestTable
as select RowNum as ID,
to_char (sysdate + rownum/24/3600, ' yyyy-mm-dd
Oracle
field type is VARCHAR2, format to match formatted style
That day
SELECT * FROM table name where To_char (to_date (field name, ' Yyyy-mm-dd hh24:mi:ss '), ' DD ') =to_char (sysdate, ' DD ')
When the week
SELECT * FROM table name where To_char (
Work needs, to query a node of all the child node information, found on the internet for a long time, did not see a direct example of many theories, so give an example, as my small white level people look at:
Give examples:
CREATE TABLE
Using the EXP and IMP commands is one of the simplest and most common ways for Oracle to migrate data for backup. The method steps used under this record for later use.
First, use the command on the old library:
Exp userid=username/password@database
46. Abnormal
(1)
DECLARE v_temp number (4);
Begin select empno into V_temp from emp where deptno = ten;
Exception when too_many_rows then
dbms_output.put_line (' Too Many records ');
When others then
dbms_output.put_line ('
Svrmgr> select * from Dba_jobs;
Initialize related parameters job_queue_processesAlter system set JOB_QUEUE_PROCESSES=39 scope=spfile;//maximum value cannot exceed 1000 job_queue_interval = 10//Schedule Job Refresh frequency secondsDba_jobs
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