Skip to content

Instantly share code, notes, and snippets.

@prashant4224
Created May 31, 2020 15:24
Show Gist options
  • Save prashant4224/a0e8d28c1b1c89c371aff06fb610d745 to your computer and use it in GitHub Desktop.
Save prashant4224/a0e8d28c1b1c89c371aff06fb610d745 to your computer and use it in GitHub Desktop.
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetTotalUser`()
BEGIN
DECLARE totalUser INT DEFAULT 0;
SELECT COUNT(*) INTO totalUser FROM USER;
SELECT totalUser;
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment