Help Center > > User Guide> MySQL Database Management (Standard Edition)> Stored Procedure Management> Creating a Stored Procedure

Creating a Stored Procedure

Updated at: Mar 20, 2020 GMT+08:00


A stored procedure consists of a set of SQL statements that can complete specific tasks or processes complex services. This section describes how to create a stored procedure. You can use loop statements in a stored procedure to insert objects repeatedly.


You have logged in to the DAS console.

  • You have obtained the CREATE ROUTINE permission.
  • You have the Execute permission.


  1. On the top menu bar, choose Database Management. In the navigation pane on the left, choose Stored Procedures > Create Stored Procedure.
  2. In the displayed dialog box, enter the stored procedure name and description and click OK. The page for editing the stored procedure is displayed.
  3. In the displayed Option dialog box, set the required parameters. You can save or execute the stored procedure.
  4. View the execution status in the Message area after the execution of the stored procedure.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?

Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel