Mathematical Functions
ABS: Absolute
ESP: E is the bottom of the index
CEILINGReturns the smallest integer greater than or equal to the value of:
FLOOR: Largest integer less than or equal to the value of
LN:Natural logarithm
log: Logarithm to the base 10
POWER: Exponentiation get results
POUND: Rounded to the precision specified length or
SIGN: Returns the number of symbols worth
SQUARE:square
SQRT: Square root
Declare @i float,@ j int , @ a decimal(10,2)
Set @i=12.2324
Set @j=100
Print power(@j,2)
String Functions
ASCII: ASCII value of the leftmost character
char
leftFrom the beginning of the leftmost specified number of characters
right: Characters from the right a specified number of
lower: Quasi made lowercase
upper: Uppercase
only: Returns a string length
LTrim: Return to the previous character space
RTRIM: Return to space after the character
PEPLACE: Replace function, replacing with third expression of a string expression that was attended by all of the second specified string expression must match
SPACE: Space function that returns a string obtained by a repeat of spaces available
STR: Digital conversion functions to the characters
SUBSTRING: Substring function
Aggregate function
AVG
COUNT
MAX
MIN
SUM
The date and time function
dateadd Returns a new date plus datatime value obtained after a time interval
datediff Returns the specified date number two man boundary date and time the number of border
datenameReturns the specified date string specified date portion
datepartReturns the integer portion of the date specified date
day
month
year
getdateReturns the current system date and time
gerutcdateReturns the current UTC time