- Documentation
Database Workshop
User guide (RDS for MySQL)
Data management
SQL window
Database management
Stored procedure management
Database management
Stored procedure management
Stored procedure management
This topic describes how to visually create, edit, and delete stored procedures on the DBW data interaction platform, implementing data lifecycle management of databases.
tip
The account you create must be granted the required permissions, for example, for querying and modifying the specified database.
- We recommend that you do not create, delete, or edit stored procedures in the system database.
- The SQL statement in Stored procedure definition cannot contain the return keyword.
- No custom separators are required in Stored procedure definition.
- The output parameters of a stored procedure cannot be the same as table field names.
- No default parameter values are specified in the stored procedures of RDS for MySQL. Therefore, when calling a RDS for MySQL stored procedure, make sure that all parameters are specified and some can be set to NULL. For example, when you create the stored procedure p(in a int, out b int), where a and b are parameters, you can run the call p(1,@b) command to call the stored procedure.
- Deletion of stored procedures is irreversible. Proceed with caution.
- Actions such as creating or deleting objects may impact online business performance. It is recommended to perform these during off-peak hours.
Create a stored procedure
- On the top menu bar of the Data interaction platform page, click the
icon next to the database and select the target database.
- In the visual area of the Data interaction platform, expand the Stored procedure, right-click the target view, and select Create stored procedure.
- On the Create stored procedure@{datebase name} tab, set the following parameters.
- On the Stored procedure definition tab, configure a command statement and click Submit.
tip
- The SQL statement in Stored procedure definition cannot contain the return keyword.
- No custom separators are required in Stored procedure definition.
- In the Execute SQL dialog box, make sure that the statement is correct and click Execute.
Execute a stored procedure
- On the top menu bar of the Data interaction platform page, click the
icon next to the database and select the target database.
- In the visual area of the Data interaction platform, expand the Stored procedure, right-click the target view, and select Execute stored procedure.
- In the Execute stored procedure dialog box, specify Parameter value and click Execute.
- In the Execute SQL dialog box, make sure that the statement is correct and click Execute.
- After the execution is completed, in the Execute stored procedure dialog box, you can go to the Execution result area and click View result to view the execution results.
- On the top menu bar of the Data interaction platform page, click the
icon next to the database and select the target database.
- In the visual area of the Data interaction platform, expand the Stored procedure, right-click the target view, and select Edit stored procedure.
- On the Edit stored procedure@{database name} tab, go to the Stored procedure definition area and edit the statement of the stored procedure.
tip
- The SQL statement in Stored procedure definition cannot contain the return keyword.
- No custom separators are required in Stored procedure definition.
- In the Execute SQL dialog box, make sure that the statement is correct and click Execute.
Delete a stored procedure
warning
Deletion of stored procedures is irreversible. Proceed with caution.
- On the top menu bar of the Data interaction platform page, click the
icon next to the database and select the target database.
- In the visual area of the Data interaction platform, expand the Stored procedure, right-click the target view, and select Delete stored procedure.
- In the Delete stored procedure dialog box, make sure that the statement is correct and click Execute.
Last updated: 2025.11.10 20:19:02