DELIMITER |
    CREATE PROCEDURE square(num INT)
    	BEGIN
    	  DECLARE x INT;
    	  SET x=num*num;
    	  SELECT x;
    	END|
    DELIMITER ;
    
  • why do this?
  • CALL procedure(arguments)
  • Worth a whole week by itself...a bit out of scope for tonight
  • INDEX
    PREVIOUS
    Master Index