SQL – MySQL LPAD() Function
The MySQL LPAD() function left-pads a string with another string, to achieve a specified length.
The MySQL LPAD() function left-pads a string with another string, to achieve a specified length.
The MySQL MAKEDATE() function creates and returns a date based on a year and a number of days value.
The MySQL MAKETIME() function creates and returns a time based on an hour, minute, and second value.
The MySQL MICROSECOND() function returns the microsecond part of a time/datetime (from 0 to 999999).
The MySQL MINUTE() function returns the minute part of a time/datetime (from 0 to 59).
The MySQL MID() function extracts a substring from a string, starting at any position from the beginning or end of the string.
The MySQL MOD() function returns the remainder of a number divided by another number.
The MySQL MONTH() function returns the month part for a given date (a number from 1 to 12).
The MySQL MONTHNAME() function returns the name of the month for a given date.
The MySQL NOW() function returns the current date and time as “YYYY-MM-DD HH:MM:SS” (string) or as YYYYMMDDHHMMSS.uuuuuu (numeric).
The MySQL NULLIF() function compares two expressions and returns NULL if they are equal. Otherwise, the first expression is returned.
The MySQL PERIOD_ADD() function adds a specified number of months to a period and will return the result formatted as YYYYMM.
The MySQL PERIOD_DIFF() function returns the difference between two periods (both periods should be in the same format). The result will be in months.
The MySQL POSITION() function returns the position of the first occurrence of a case-insensitive substring in a string.
The MySQL POW() function returns the value of a number raised to the power of another number.
The MySQL POWER() function returns the value of a number raised to the power of another number.