Oracle Knowledge Point Consolidation

Source: Internet
Author: User

1.NVL function, Usage: NVL (A, B) when the first argument is empty, the second argument is displayed
2. Recursive query: Connect by: General usage: Start With...connect by ...
Example: SELECT * from emp connect by Mgr =prior empno start with empno=7839
Represents an upward recursive query from empno to 7839, the previous record empno= the Mgr,prior of this record represents the previous record (parent record)
Note: Connect by Mgr =prior empno and connect by prior MGR = Empno recursion in the opposite direction
3.select 1 from Table ... Indicates whether the view table has data
4.select Column_value A from table: query pseudo-column, data to be queried as column A (self-specified)
5.exits: Indicates that a subquery result is not empty, the Where condition is established
6. View CNC Library version: SELECT * FROM V$version
The difference between 7.in and exits
Example: SELECT * from B where cc on (select cc from A);
This is the first to query the CC in a table and B in the match, for a table is much smaller than the B table
SELECT * FROM B exits (select cc from A where cc=b.cc)
This is the first to find out the CC in B and match the A table.
8.splitstr function: Splits a string by a specified character
such as: SELECT * FROM table (splitstr (' 1,2,3,4 ', ', '))
9.union: Merge result sets of two or more queries, default does not contain duplicate values, if you want to protect duplicate values, use UnionAll
10.dual: Commonly used in queries that do not have a target table
The 11.INSTR function returns the position of the string to intercept in the source string,
Example: InStr (string1,string2,start_position,nth_appearanece): String1 source String, String2 the string to find in the source string, the location to begin the lookup, Find the string2 of the first few occurrences
12.| | Representing string connectors in Oracle
13.Oracle Database Export command exp name/[email PROTECTED]:1521/ORCL file=f:\daochu.dmp full=y

Oracle Knowledge Point Consolidation

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.