Function and Operator Reference
866
Name
Description
CURRENT_TIMESTAMP()
,
CURRENT_TIMESTAMP
[918]
Synonyms for NOW()
CURRENT_USER()
,
CURRENT_USER
[959]
The authenticated user name and host name
CURTIME()
[918]
Return the current time
DATABASE()
[960]
Return the default (current) database name
DATE_ADD()
[919]
Add time values (intervals) to a date value
DATE_FORMAT()
[921]
Format date as specified
DATE_SUB()
[922]
Subtract a time value (interval) from a date
DATE()
[918]
Extract the date part of a date or datetime expression
DATEDIFF()
[919]
Subtract two dates
DAY()
[922]
Synonym for DAYOFMONTH()
DAYNAME()
[923]
Return the name of the weekday
DAYOFMONTH()
[923]
Return the day of the month (0-31)
DAYOFWEEK()
[923]
Return the weekday index of the argument
DAYOFYEAR()
[923]
Return the day of the year (1-366)
DECODE()
[954]
Decodes a string encrypted using ENCODE()
DEFAULT()
[965]
Return the default value for a table column
DEGREES()
[909]
Convert radians to degrees
DES_DECRYPT()
[954]
Decrypt a string
DES_ENCRYPT()
[954]
Encrypt a string
DIV
[907]
Integer division
/
[906]
Division operator
ELT()
[888]
Return string at index number
ENCODE()
[955]
Encode a string
ENCRYPT()
[955]
Encrypt a string
<=>
[876]
NULL-safe equal to operator
=
[875]
Equal operator
EXP()
[910]
Raise to the power of
EXPORT_SET()
[888]
Return a string such that for every bit set in the value bits,
you get an on string and for every unset bit, you get an off
string
EXTRACT()
[923]
Extract part of a date
FIELD()
[888]
Return the index (position) of the first argument in the
subsequent arguments
FIND_IN_SET()
[888]
Return the index position of the first argument within the
second argument
FLOOR()
[910]
Return the largest integer value not greater than the
argument
FORMAT()
[889]
Return a number formatted to specified number of decimal
places
FOUND_ROWS()
[960]
For a SELECT with a LIMIT clause, the number of rows that
would be returned were there no LIMIT clause
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...