SQL – MySQL STRCMP() Function
The MySQL STRCMP() function compares the lengths two strings.
The MySQL STR_TO_DATE() function returns a date based on a string and a format.
The MySQL SUBDATE() function subtracts a time/date interval from a date and then returns the new date.
The MySQL SUBSTR() function extracts a substring from a string, starting from any position.
The MySQL SUBSTRING() function extracts a substring from a string, starting from any position.
The MySQL SUBSTRING_INDEX() function returns a substring of a string before a specified number of delimiter occurs.
The MySQL SUBTIME() function subtracts time from a time/datetime expression and then returns the new time/datetime.
The MySQL SYSDATE() function returns the current date and time as “YYYY-MM-DD HH:MM:SS” (string) or as YYYYMMDDHHMMSS (numeric).
The MySQL SYSTEM_USER() function returns the current user name and host name for the MySQL connection.
The MySQL TIME() function extracts the time part from a given time/datetime, and returns “00:00:00” if not a datetime/time, or NULL if expression is NULL.
The MySQL TIME_FORMAT() function formats a time by a specified format.
The MySQL TIME_TO_SEC() function converts a time value into seconds.
The MySQL TIMEDIFF() function returns the difference between two time/datetime expressions (written in the same format).
The MySQL TIMESTAMP() function returns a datetime value based on a date or datetime value.
The MySQL TO_DAYS() function returns the number of days between a date and year 0 (date “0000-00-00”).
The MySQL TRIM() function removes leading and trailing spaces from a string.
The MySQL TRUNCATE() function truncates a number to the specified number of decimal places.