SQL Common functions

Source: Internet
Author: User

The database has a number of built-in functional performance calculation data.

SQL for aggregate functions
The total SQL function returns a single value calculation, from the value of a column.

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

Useful standard function:

UCASE ()-Uppercase of the conversion realm
LCASE ()-Convert one field to lowercase
Min ()-Extract the text field of the character
Len ()-The length text field returned
ROUND ()-Rounds a number of specific decimal places in a digital field
Now ()-Returns the current system date and time
Format ()-How formatting is displayed in the field
Tip: The total number of functions and responsibilities will be explained in detail in future chapters.

Useful aggregate functions:

AVG ()-the average value returned
Count ()-Number of rows returned
First ()-Returns the number one value
Last ()-Returns the final value
Max ()-Maximum value to return
MIN ()-Returns the smallest value
Total ()-The sum returned

The above SQL functions are commonly used by us, especially to the novice has a lot of help Oh,

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.