Creating a Stored Procedure
Scenarios
A stored procedure consists of a set of SQL statements that can complete specific tasks or process complex services. This section describes how to create a stored procedure. You can use loop statements in a stored procedure to insert objects repeatedly.
Prerequisites
- You have obtained the CREATE ROUTINE permission.
- You have the Execute permission.
Procedure
- On the top menu bar, choose Database Management. On the displayed Objects page, select Stored Procedures, and click Create Stored Procedure. Figure 1 Creating a stored procedure
- In the displayed dialog box, specify a stored procedure name and description and click OK. Figure 2 Editing the stored procedure
- On the displayed page, click Option, set the required parameters, and click OK. Then, save and execute the stored procedure. Figure 3 Setting the stored procedure
- View the execution status in the Message area. Figure 4 Viewing SQL status
Last Article: Stored Procedure Management
Next Article: Altering or Executing a Stored Procedure
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.