1 --Create a table2 Create TablePerson (3Id Number Primary Key,4Namevarchar2( +),5 Birth date6 );7 --Create a sequence8 Createsequence Person_id_seq9Increment by 1TenStart with 1 OneNomaxvalue--do not set the maximum value ANocycle--keep
Oracle Main type functions:
Single-line function: You can enter only one row of results and return a result. Common single-line functions are:
Character functions
numeric functions
Conversion functions
Date
In most cases, the query optimization strategy built into the Oracle database is still a success, but occasionally confused, even if there is an index, will do a full table scan, you can refer to the following statement, forcing the SELECT statement
One: Recovery of tablesFor mistakenly deleted table, as long as not using purge permanent delete option, then recover from the Flashback table area hope is quite large. The general steps are:1. Query the deleted table from flashback tableSELECT *
1.oracle10g after the download is complete, unzip, select "Setup.exe" to start the installation after the decompression is complete.The 2.oracle home directory location is where Oracle is ready to install, called "Oracle_home", and typically Oracle
Take student table as an example to page out pure SQL pagingSELECT * FROM (SELECT- rownum,a.* from- STUDENT ORDER by Createtime DESC ) A WHERE ROWNUM &L t;=) WHERE ROWNUM >=1;MyBatis Sub-page select * FROM (select a.*,rownum
1. Ordering reasonable query conditionsOracle bottom-up analysis sequence where receipts, from the perspective of optimizing performance. It is suggested that these conditions will be able to filter out a large number of lines written where at the
in the production environment, we will find:① Index Table Space I/O is very high② "DB file sequential read" Wait event is also higherThis indicates that the whole database system, index read and write operation is more, has become the main
?1. Principles of Index use?Do not use full blur on the index, but like ' asdf% ' is possible, that is, do not contains, available StartwithDo not perform functions on the index, expression operations, or use is null to determine, otherwise the full
1. Grammatical structure:Select... start with...connect by...priorFor example: there is a unit (unit) Table with three field IDs, Name,parentid (unit ID, Unit name, ancestor's unit ID)1.1 Query all units below the unitSelect from unit t start with
Recently developed the process of processing ECIF related projects, using Stored procedures to run batch processing data. Run batches of data regularly, each time the stored procedure runs using temporary tables for data collation, and then join
Linux Setting Oracle Environment variables Method One: Run the export command directly to define the variable, which is valid only under the current shell (bash) or its child shell (bash), the shell is closed, the variable is invalidated, the new
A few days ago, on the test server, install an ERP system simulation environment.In the process of installing Oracle, I encountered the Oracle's EM unreachable, today tossing a morning, finally solved.Symptoms: Just loaded Oracle 11G, is accessible,
First, language classification1.DML (Data Manipulation Language): Used for data manipulation. DML includes: (1) SELECT: query dataSelect * from temp;(2) INSERT: Add data to DatabaseInsert into Temp Values (4,' Harry ');(3) UPDATE: Used to modify
Linux set up Oracle boot automatically under SystemIn a Linux system, after the Oracle database service is installed, the Oracle service will start automatically at any time by default, as is the case with Windows systems. Linux system, it is
--company average salary single row--select avg (SAL) from EMP;--Find the employee's name, position, and salary above this average wage--select E.ename,e.job,e.sal--from EMP E--where e.sal > (select AVG (SAL) from EMP);--Name of leader--select
The set operation does not apply to lob,varray and escape table columns union, intersect, minus operators do not apply to long if the selection list contains an expression or function, you must define the column alias 1, Uinon: No weight union, for
Introduction to the long raw blob clob type in OracleRAW: unprocessed type, which can store binary data or LONG, a variable-length string data. The longest value is 2 GB. LONG has the feature of VARCHAR2 columns, you can store up to one LONG column
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