SQL – MySQL DAYOFWEEK() Function
The MySQL DAYOFWEEK() function returns the weekday index for a given date (a number from 1 – Sunday to 7 – Saturday).
The MySQL DAYOFWEEK() function returns the weekday index for a given date (a number from 1 – Sunday to 7 – Saturday).
The MySQL DAYOFYEAR() function returns the day of the year for a given date (a number from 1 to 366).
The MySQL EXP() function returns the natural logarithm e (2.718281…) raised to the power of the specified number.
The MySQL FIELD() function returns the index position of a case-insensitive value in a list of values.
The MySQL FIND_IN_SET() function returns the position of a string within a list of strings.
The MySQL FLOOR() function returns the largest integer value that is smaller than or equal to a number.
The MySQL FORMAT() function formats a number to a format like “#,###,###.##”, rounded to a specified number of decimal places, and returns it as a string.
The MySQL FROM_DAYS() function returns a date from a numeric datevalue.
The MySQL GREATEST() function returns the greatest value of the list of arguments.
The MySQL HOUR() function returns the hour part for a given date (from 0 to 838).
The MySQL IF() function returns a value if a condition is TRUE, or another value if a condition is FALSE.
The MySQL IFNULL() function returns a specified value if the expression is NULL.
The MySQL INSERT() function inserts a string within a string at the specified position and for a certain number of characters.
The MySQL INSTR() function returns the position of the first occurrence of a case-insensitive string in another string.
The MySQL ISNULL() function returns 1 (null) or 0 (not null) depending on whether an expression is NULL.
The MySQL LAST_INSERT_ID() function returns the AUTO_INCREMENT id of the last row that has been inserted or updated in a table.
The MySQL LAST_DAY() function extracts the last day of the month for a given date.