Posts by Felype • 101 points
1 post
-
0
votes2
answers1648
viewsA: Mysql UPDATE multiple fields under the same condition (IF or CASE)
You can try to create a function: DELIMITER ;; CREATE FUNCTION obterSeconds (horaini INT, diaini INT, mesini INT, seconds INT) RETURNS INT BEGIN RETURN CASE WHEN (mesini = MONTH(NOW()) AND diaini =…