SQL Server Common functions

Source: Internet
Author: User

LEN (String) returns the length of the character in this string.

ISNULL (Check,return) null value function. Checks if check is null and returns the value of return if null.

DATEADD (unit,duration,date) returns this new datetime value by adding or subtracting a period of time from the specified date. Unit units (Year,day ...), duration--interval length (can be negative), date to be modified.

SUBSTRING (str,index,length) intercepts the string method. STR: The string to be intercepted; index: from which to start interception; Length: how long to intercept.

ASCII (str) Gets the ASCII value of Str.

CHARINDEX (CH,STR) returns the position of the first occurrence of ch in str.

SQL Server Common functions

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.