MySQL Forums
Forum List  »  Stored Procedures

How to get the max of two values in MySQL?
Posted by: Dale Thomas
Date: December 05, 2020 02:59AM

I tried but failed:

mysql> select max(1,0);

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to use
near '0)' at line 1

Options: ReplyQuote


Subject
Views
Written By
Posted
How to get the max of two values in MySQL?
377
December 05, 2020 02:59AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.