MySQL greatest() Function Datetime Example

MySQL greatest() Datetime Function Example

Open your MySQL Query Editor then copy & paste the below code to get the value of greatest() MySQL Function Example on datetime value:

  select now()-2, now()-1, now()-3, greatest(now()-2, now()-1, now()-3);

MySQL greatest() Datetime Function Example - Result in MySQL Query Editor

 

Related Tutorial Examples

  1. MySQL isnull() Function Example
  2. MySQL least() Function Datetime Value Example
  3. MySQL least() Function String Value Example
  4. MySQL least() Function Numeric Value Example
  5. MySQL now() Datetime Function Example
  6. MySQL greatest() Function String Value Example
  7. MySQL Stored Procedure Function: How to Drop a Stored Procedure Example
  8. Creating a Table(s) with datatype using SQL Command MySQL Example
  9. Creating Database(s) using SQL Command MySQL Example
  10. 20 steps to make CakePHP Blog Project

No comments:

Post a Comment

leave your comments here..