Answers for "internal variable in mysql procedure"

SQL
0

internal variable in mysql procedure

DELIMITER $$

CREATE PROCEDURE GetTotalOrder()
BEGIN
	DECLARE totalOrder INT DEFAULT 0;
    
    SELECT COUNT(*) 
    INTO totalOrder
    FROM orders;
    
    SELECT totalOrder;
END$$

DELIMITER ;
Code language: SQL (Structured Query Language) (sql)
Posted by: Guest on October-14-2021

Code answers related to "internal variable in mysql procedure"

Code answers related to "SQL"

Browse Popular Code Answers by Language