Sybase predefined functions

Source: Internet
Author: User
Tags count integer mathematical functions sybase

1. Aggregate functions

SUM ([all|distinct] expression)

AVG ([all|distinct] expression)

Count ([all|distinct] expression)

COUNT (*)

Max (expression)

MIN (expression)

2. String functions

Upper (character expression)

Lower (character expression)

char (int-expression)

Char_length (character expression)

LTrim (character expression)

RTrim (character expression)

......

3. Mathematical functions

ABS (exact decimal type expression)

Floor (exact decimal expression) to find the largest integer (bottom) that is less than or equal to the given expression value

rand (INT-type)

Round (exact decimal expression, integer)

sign (exact decimal expression)

Power (exact decimal expressions, integer powers)

......

4. Date function

GETDATE ()

DATEPART (date part, date)

DateDiff (date part, date 1, date 2)

DATEADD (date part, numeric expression, date)

5. Type Conversion Functions

Convert (data type, expression [, format])

6. System functions

DB_NAME ([database ID])

HOST_NAME ()

IsNull (expression 1, expression 2)

......

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.