SQL – MySQL TIME() Function
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() 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.
The MySQL USER() function returns the current user name and host name for the MySQL connection.
The MySQL VERSION() function returns the current version of the MySQL database, as a string.
The MySQL WEEK() function returns the week number for a given date (a number from 0 to 53).
The MySQL WEEKDAY() function returns the weekday number for a given date.
The MySQL WEEKOFYEAR() function returns the week number for a given date (a number from 1 to 53).
The MySQL YEAR() function returns the year part for a given date (a number from 1000 to 9999).
The MySQL YEARWEEK() function returns the year and week number (a number from 0 to 53) for a given date.
The SQL Server ABS() function returns the absolute value of a number.
The SQL Server ACOS() function returns the arc cosine of a specified number between -1 and 1.
The SQL Server ASCII() function returns the ASCII value for the specified character.