- Documentation
Database Workshop
User guide (RDS for MySQL)
Data management
SQL window
Database management
Function management
Database management
Function management
Function management
This topic describes how to visually create, edit, and delete functions 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 functions in the system database.
- Custom functions can only be used in the database connected to the current client.
- No custom separators are required in Function definition.
- Functions must have return values. Therefore, functions must not contain the select command, except when you use the select into command to assign values to multiple variables.
- Function deletion 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.
- 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 Function, right-click the target view, and select Create function.
- On the Create function@{datebase name} tab, set the following parameters.
- On the Create function@{datebase name} tab, go to the Function definition area, set a statement to execute the function, and click Submit.
tip
No custom separators are required in Function definition.
- In the Execute SQL dialog box, make sure that the statement is correct and click Execute.
- 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 Function, right-click the target view, and select Execute function.
- In the Execution function dialog box, set 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 Execution function 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 Function, right-click the target view, and select Edit function.
- On the Edit function@{database name} tab, go to the Function definition area and edit the function statement.
- In the Execute SQL dialog box, make sure that the statement is correct and click Execute.
warning
Function deletion 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 Function, right-click the target view, and select Delete function.
- In the Execute SQL dialog box, make sure that the statement is correct and click Execute.
Last updated: 2025.09.02 18:25:10