First, we create a MySQL storage process, writes the following in the SQL code area, and executed on it
# A stored procedure to write the CREATE PROCEDURE ShowDate () the BEGIN # outputs the current time the SELECT CURDATE (); the END ;
Second, we have to call the stored procedure
# Call a stored procedure
CALL ShowDate ();
After calling effect is as follows
Third, we have to see our stored procedures
# Display stored procedure SHOW the CREATE PROCEDURE ShowDate;
You can see the stored procedures are stored in a field inside the Create Procedure
Fourth, we have to delete the stored procedure
# Delete the stored procedure DROP PROCEDURE ShowDate;
Deleted after not see the stored procedure
Beginning of the heart do not forget, if you think this article valuable, authors agree to pay, micro-channel two-dimensional code can be any amount of a reward to the author (Micro Signal: 382 477 247) Oh, thank you.