Common SQL Functions

Source: Internet
Author: User
The database has many computation data with built-in functions. Aggregate Function SQL total SQL function returns a single value calculation from the value column. The SQL scalar function of the standard function returns a single value based on the input value. Useful tagging functions: UCASE ()-convert fields to uppercase LCASE ()-convert a field to lowercase min ()-extract character text field len ()-return length text field ROUND

The database has many computation data with built-in functions.

Aggregate Function SQL
The total SQL function returns a single value calculation from the value column.

Standard function SQL
The SQL scalar function returns a single value based on the input value.

Useful tagging functions:

UCASE ()-upper case of the conversion field
LCASE ()-converts a field to lowercase letters
Min ()-extract character text fields
Len ()-returned length text field
ROUND ()-rounds ROUND specific Decimals in a digital field
NOW ()-returns the current system date and time
Format ()-How to display fields
Tip: the total number of functions and responsibilities will be explained in detail in future chapters.

Useful Aggregate functions:

AVG ()-average returned value
Count ()-number of returned rows
First ()-returns the first value.
Last ()-returns the last value
Max ()-maximum returned value
Min ()-returns the smallest value
Total ()-total returned

The preceding SQL functions are commonly used, especially for beginners,

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.