Error calculating the maximum number
2 answers
use this
$sql = "select GREATEST(patient_id) as maximum from outdoor";
Use GREATEST ()
For example:
SELECT GREATEST(2,1);
0
source to share