This table is part of an ongoing process to expand and simplify the information provided on these elements. Further improvements to the table, and corresponding descriptions will be applied over the coming months.
ABS() Return the absolute valueACOS() Return the arc cosineADDDATE()(v4.1.1) Add datesADDTIME()(v4.1.1) Add timeAES_DECRYPT() Decrypt using AESAES_ENCRYPT() Encrypt using AESAND, && Logical ANDASCII() Return numeric value of left-most characterASIN() Return the arc sineATAN2(), ATAN() Return the arc tangent of the two argumentsATAN() Return the arc tangentAVG() Return the average value of the argumentBENCHMARK() Repeatedly execute an expressionBETWEEN ... AND ... Check whether a value is within a range of valuesBIN() Return a string representation of the argumentBINARY Cast a string to a binary stringBIT_AND() Return bitwise andBIT_COUNT() Return the number of bits that are setBIT_LENGTH() Return length of argument in bitsBIT_OR() Return bitwise orBIT_XOR()(v4.1.1) Return bitwise xor& Bitwise AND~ Invert bits| Bitwise OR^ Bitwise XORCASE Case operatorCAST() Cast a value as a certain typeCEIL() Return the smallest integer value not less than the argumentCEILING() Return the smallest integer value not less than the argumentCHAR_LENGTH() Return number of characters in argumentCHAR() Return the character for each integer passedCHARACTER_LENGTH() A synonym for CHAR_LENGTH()CHARSET()(v4.1.0) Return the character set of the argumentCOALESCE() Return the first non-NULL argumentCOERCIBILITY()(v4.1.1) Return the collation coercibility value of the string argumentCOLLATION()(v4.1.0) Return the collation of the string argumentCOMPRESS()(v4.1.1) Return result as a binary stringCONCAT_WS() Return concatenate with separatorCONCAT() Return concatenated stringCONNECTION_ID() Return the connection ID (thread ID) for the connectionCONV() Convert numbers between different number basesCONVERT_TZ()(v4.1.3) Convert from one timezone to anotherConvert() Cast a value as a certain typeCOS() Return the cosineCOT() Return the cotangentCOUNT(DISTINCT) Return the count of a number of different valuesCOUNT() Return a count of the number of rows returnedCRC32()(v4.1.0) Compute a cyclic redundancy check valueCURDATE() Return the current dateCURRENT_DATE(), CURRENT_DATE Synonyms for CURDATE()CURRENT_TIME(), CURRENT_TIME Synonyms for CURTIME()CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP Synonyms for NOW()CURRENT_USER(), CURRENT_USER Return the username and hostname combinationCURTIME() Return the current timeDATABASE() Return the default (current) database nameDATE_ADD() Add two datesDATE_FORMAT() Format date as specifiedDATE_SUB() Subtract two datesDATE()(v4.1.1) Extract the date part of a date or datetime expressionDATEDIFF()(v4.1.1) Subtract two datesDAY()(v4.1.1) Synonym for DAYOFMONTH()DAYNAME()(v4.1.21) Return the name of the weekdayDAYOFMONTH() Return the day of the month (0-31)DAYOFWEEK() Return the weekday index of the argumentDAYOFYEAR() Return the day of the year (1-366)DECODE() Decodes a string encrypted using ENCODE()DEFAULT() Return the default value for a table columnDEGREES() Convert radians to degreesDES_DECRYPT() Decrypt a stringDES_ENCRYPT() Encrypt a stringDIV(v4.1.0) Integer division/ Division operatorELT() Return string at index numberENCODE() Encode a stringENCRYPT() Encrypt a string<=> NULL-safe equal to operator= Equal operatorEXP() Raise to the power ofEXPORT_SET() 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 stringEXTRACT Extract part of a dateFIELD() Return the index (position) of the first argument in the subsequent argumentsFIND_IN_SET() Return the index position of the first argument within the second argumentFLOOR() Return the largest integer value not greater than the argumentFORMAT() Return a number formatted to specified number of decimal placesFOUND_ROWS() For a SELECT with a LIMIT clause, the number of rows that would be returned were there no LIMIT clauseFROM_DAYS() Convert a day number to a dateFROM_UNIXTIME() Format UNIX timestamp as a dateGET_FORMAT()(v4.1.1) Return a date format stringGET_LOCK() Get a named lock>= Greater than or equal operator> Greater than operatorGREATEST() Return the largest argumentGROUP_CONCAT()(v4.1) Return a concatenated stringHEX() Return a hexadecimal representation of a decimal or string valueHOUR() Extract the hourIF() If/else constructIFNULL() Null if/else constructIN() Check whether a value is within a set of valuesINET_ATON() Return the numeric value of an IP addressINET_NTOA() Return the IP address from a numeric valueINSERT() Insert a substring at the specified position up to the specified number of charactersINSTR() Return the index of the first occurrence of substringINTERVAL() Return the index of the argument that is less than the first argumentIS_FREE_LOCK() Checks whether the named lock is freeIS NOT NULL NOT NULL value testIS NOT Test a value against a booleanIS NULL NULL value testIS_USED_LOCK()(v4.1.0) Checks whether the named lock is in use. Return connection identifier if true.IS Test a value against a booleanISNULL() Test whether the argument is NULLLAST_DAY(v4.1.1) Return the last day of the month for the argumentLAST_INSERT_ID() Value of the AUTOINCREMENT column for the last INSERTLCASE() Synonym for LOWER()LEAST() Return the smallest argument<< Left shiftLEFT() Return the leftmost number of characters as specifiedLENGTH() Return the length of a string in bytes<= Less than or equal operator< Less than operatorLIKE Simple pattern matchingLN() Return the natural logarithm of the argumentLOAD_FILE() Load the named fileLOCALTIME(), LOCALTIME Synonym for NOW()LOCALTIMESTAMP, LOCALTIMESTAMP()(v4.0.6) Synonym for NOW()LOCATE() Return the position of the first occurrence of substringLOG10() Return the base-10 logarithm of the argumentLOG2() Return the base-2 logarithm of the argumentLOG() Return the natural logarithm of the first argumentLOWER() Return the argument in lowercaseLPAD() Return the string argument, left-padded with the specified stringLTRIM() Remove leading spacesMAKE_SET() Return a set of comma-separated strings that have the corresponding bit in bits setMAKEDATE()(v4.1.1) Create a date from the year and day of yearMAKETIME(v4.1.1) MAKETIME()MASTER_POS_WAIT() Block until the slave has read and applied all updates up to the specified positionMATCH Perform full-text searchMAX() Return the maximum valueMD5() Calculate MD5 checksumMICROSECOND()(v4.1.1) Return the microseconds from argumentMID() Return a substring starting from the specified positionMIN() Return the minimum value- Minus operatorMINUTE() Return the minute from the argumentMOD() Return the remainder% Modulo operatorMONTH() Return the month from the date passedMONTHNAME()(v4.1.21) Return the name of the monthNAME_CONST()(v5.0.12) Causes the column to have the given nameNOT BETWEEN ... AND ... Check whether a value is not within a range of values!=, <> Not equal operatorNOT IN() Check whether a value is not within a set of valuesNOT LIKE Negation of simple pattern matchingNOT REGEXP Negation of REGEXPNOT, ! Negates valueNOW() Return the current date and timeNULLIF() Return NULL if expr1 = expr2OCT() Return an octal representation of a decimal numberOCTET_LENGTH() A synonym for LENGTH()OLD_PASSWORD()(v4.1) Return the value of the old (pre-4.1) implementation of PASSWORD||, OR Logical ORORD() Return character code for leftmost character of the argumentPASSWORD() Calculate and return a password stringPERIOD_ADD() Add a period to a year-monthPERIOD_DIFF() Return the number of months between periodsPI() Return the value of pi+ Addition operatorPOSITION() A synonym for LOCATE()POW() Return the argument raised to the specified powerPOWER() Return the argument raised to the specified powerPROCEDURE ANALYSE() Analyze the results of a queryQUARTER() Return the quarter from a date argumentQUOTE() Escape the argument for use in an SQL statementRADIANS() Return argument converted to radiansRAND() Return a random floating-point valueREGEXP Pattern matching using regular expressionsRELEASE_LOCK() Releases the named lockREPEAT() Repeat a string the specified number of timesREPLACE() Replace occurrences of a specified stringREVERSE() Reverse the characters in a string>> Right shiftRIGHT() Return the specified rightmost number of charactersRLIKE Synonym for REGEXPROUND() Round the argumentROW_COUNT()(v5.0.1) The number of rows updatedRPAD() Append string the specified number of timesRTRIM() Remove trailing spacesSCHEMA()(v5.0.2) A synonym for DATABASE()SEC_TO_TIME() Converts seconds to 'HH:MM:SS' formatSECOND() Return the second (0-59)SESSION_USER() Synonym for USER()SHA1(), SHA() Calculate an SHA-1 160-bit checksumSIGN() Return the sign of the argumentSIN() Return the sine of the argumentSLEEP()(v5.0.12) Sleep for a number of secondsSOUNDEX() Return a soundex stringSOUNDS LIKE(v4.1.0) Compare soundsSPACE() Return a string of the specified number of spacesSQRT() Return the square root of the argumentSTD() Return the population standard deviationSTDDEV_POP()(v5.0.3) Return the population standard deviationSTDDEV_SAMP()(v5.0.3) Return the sample standard deviationSTDDEV() Return the population standard deviationSTR_TO_DATE()(v4.1.1) Convert a string to a dateSTRCMP() Compare two stringsSUBDATE() A synonym for DATE_SUB() when invoked with three argumentsSUBSTR() Return the substring as specifiedSUBSTRING_INDEX() Return a substring from a string before the specified number of occurrences of the delimiterSUBSTRING() Return the substring as specifiedSUBTIME()(v4.1.1) Subtract timesSUM() Return the sumSYSDATE() Return the time at which the function executesSYSTEM_USER() Synonym for USER()TAN() Return the tangent of the argumentTIME_FORMAT() Format as timeTIME_TO_SEC() Return the argument converted to secondsTIME()(v4.1.1) Extract the time portion of the expression passedTIMEDIFF()(v4.1.1) Subtract time* Times operatorTIMESTAMP()(v4.1.1) With a single argument, this function returns the date or datetime expression; with two arguments, the sum of the argumentsTIMESTAMPADD()(v5.0.0) Add an interval to a datetime expressionTIMESTAMPDIFF()(v5.0.0) Subtract an interval from a datetime expressionTO_DAYS() Return the date argument converted to daysTRIM() Remove leading and trailing spacesTRUNCATE() Truncate to specified number of decimal placesUCASE() Synonym for UPPER()- Change the sign of the argumentUNCOMPRESS()(v4.1.1) Uncompress a string compressedUNCOMPRESSED_LENGTH()(v4.1.1) Return the length of a string before compressionUNHEX()(v4.1.2) Convert each pair of hexadecimal digits to a characterUNIX_TIMESTAMP() Return a UNIX timestampUPPER() Convert to uppercaseUSER() Return the current username and hostnameUTC_DATE()(v4.1.1) Return the current UTC dateUTC_TIME()(v4.1.1) Return the current UTC timeUTC_TIMESTAMP()(v4.1.1) Return the current UTC date and timeUUID()(v4.1.2) Return a Universal Unique Identifier (UUID)VALUES()(v4.1.1) Defines the values to be used during an INSERTVAR_POP()(v5.0.3) Return the population standard varianceVAR_SAMP()(v5.0.3) Return the sample varianceVARIANCE()(v4.1) Return the population standard varianceVERSION() Returns a string that indicates the MySQL server versionWEEK() Return the week numberWEEKDAY() Return the weekday indexWEEKOFYEAR()(v4.1.1) Return the calendar week of the date (0-53)XOR Logical XORYEAR() Return the yearYEARWEEK() Return the year and weekYou are viewing a mobilized version of this site...
View original page here
User Comments
Add your own comment.