Hello.
I'm learning procedures and I have a question:
DELIMITER $$
CREATE PROCEDURE 'atualiza_telefone' (IN telefone INT)
BEGIN
IF (telefone IS NULL) THEN
SELECT * FROM cliente;
ELSE UPDATE cliente
SET telefone = "4444-4444"
WHERE seg_nome = 'Binatti';
END IF;
END $$
DELIMITER ;
I would like, if the phone is updated, put in to make a SELECT * FROM cliente
, to show that the phone has been updated.
Can anyone help me? Thanks!