Step 4: Managing Data
Table Management
- On the Objects tab page, select Tables. Click Create Table and specify information such as the table name and storage engine. Figure 1 Creating a table
- Ensure the settings are correct and click Next. Then add table columns.
- Click Next and add virtual columns, indexes, and foreign keys.
- Click Create. In the SQL Preview dialog box, click Back if there is something wrong, and click Execute to create the table if everything is correct. Figure 2 SQL preview
View Management
- On the Objects tab page, select Views. Click Create View and specify information such as the view name, algorithm, security, and view definition statement. Figure 3 Creating a view
- Click Create. In the SQL Preview dialog box, click Back if there is something wrong, and click Execute to create the view if everything is correct. Figure 4 SQL preview
Stored Procedure Management
- On the Objects tab page, select Stored Procedures. Click Create Stored Procedure and specify the name and description. Figure 5 Creating a stored procedure
- Ensure the settings are correct and click OK. The Create Stored Procedure page is displayed.
- Click Option and configure the information such as SQL security and data access. Figure 6 Configuring options
- Ensure the settings are correct, and click OK and then Save.
- Click Execute to create a stored procedure. Figure 7 SQL execution
Event Management
- On the Objects tab page, select Events. Click Create Event and specify information such as the event name, status, remarks, and event definition statements. Figure 8 Creating an event
- Click Create. In the SQL Preview dialog box, click Back if there is something wrong, and click Execute to create the event if everything is correct. Figure 9 SQL preview
Trigger Management
- On the Objects tab page, select Triggers. Click Create Trigger and specify information such as the trigger name, trigger table, trigger condition, trigger event, and trigger definition statement. Figure 10 Creating a trigger
- Click Create. In the SQL Preview dialog box, click Back if there is something wrong, and click Execute to create the trigger if everything is correct. Figure 11 SQL preview
Function Management
- On the Objects tab page, select Functions. Click Create Function and specify information such as the function name and description. Figure 12 Creating a function
- Ensure the settings are correct and click OK. The SQL preview page is displayed.
- Click Option and configure the information such as SQL security and data access. Figure 13 Configuring options
- Ensure the settings are correct, and click OK and then Save. Then click Execute to create the function. If you want to modify SQL statements, modify them in the SQL window and then click Execute. Figure 14 SQL execution
Last Article: Step 3: Logging In to a Database
Next Article: Change History
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.