MySQL Select function list
There are quite a few functions which can
be used in MySQL select statement.
Common Text Function:
Returns the leftmost number of characters as specified
|
|
Returns the position of the first occurrence of
substring
|
|
Returns the argument in lowercase
|
|
Removes leading spaces
|
|
Returns the specified rightmost number of characters
|
|
Removes trailing spaces
|
|
Removes leading and trailing spaces
|
|
Converts to uppercase
|
Common Datetime Functions
Add time values
(intervals) to a date value
|
|
Add time
|
|
Convert from one
timezone to another
|
|
Return the current
date
|
|
Return the current
time
|
|
Extract the date part
of a date or datetime expression
|
|
Subtract two dates
|
|
Return the name of
the weekday
|
|
Return the day of the
month (0-31)
|
|
Return the weekday
index of the argument
|
|
Return the day of the
year (1-366)
|
|
Extract the hour
|
|
Return the minute
from the argument
|
|
Return the month from
the date passed
|
|
Return the current
date and time
|
|
Return the second
(0-59)
|
|
Return the year
|
Aggregate functions:
AVG()
|
Average of the column
|
COUNT()
|
counter of the column
|
Maximine of the
column
|
|
Minimen of the column
|
|
summary of the column
|
No comments:
Post a Comment