SQL Language Reference

Source: Internet
Author: User

Set operators Union, union All, INTERSECT, and minus
These three operators have the same precedence, from left to right, unless there are parentheses

Library single table operation, single-Library multi-table operation, multi-Library multi-table operation (use to Dblink)

Transcendental function transcendental functions, such as: Sin,cos,tan, etc.

Functions are similar to operators, they all maintain data items and return results, and differ from operators in parameter formats

Functions that do not have any parameters are similar to pseudo-columns

Pseudo-Columns return different values per row

Functions that do not have any parameters return the same value for each row

They convert each other.

Select Nls_charset_name (2) from dual

Select nls_charset_id (' We8dec ') from dual

The following three column names are not the same

Select Length (' Canada ') from dual length (' Canada ') as column name and uppercase

Select Length (' Canada ') Woshi from dual Woshi as column name and large print single-byte character set returns 6 if the double-byte database character set returns 12

Select Length (' Canada ') "Woshi" from dual Woshi as the column name is output (in quotation marks what is what) single-byte character set returns 6 if the double-byte database character set returns 12

Select CONCAT (CONCAT (last_name, "job category is"), job_id) "Job"
From Employees
WHERE employee_id = 152;

Concat This function was equivalent to the concatenation operator (| |).

comparison function

Select Greatest (' HARRY ', ' Harriot ', ' HAROLD ') ' greatest ' from DUAL;
Select Greatest (1, ' 3.925 ', ' 2.4 ') "greatest" from DUAL;

Environment and identity functions

Select Userenv (' Terminal ') from dual

Select Userenv (' Sid ') from dual

Select User,uid from dual

SQL Language Reference

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.