View
Views can be registered and called from an action’s SQL function.
Create
- Select “Databases” from the side menu and click
"Database Name">"Views">"Create View". - The editor appears in the right panel.
- After describing the contents of the view, click the
"Apply"button. - When registration is complete, the view you created will appear in Views.
Sample:
use mydb;CREATE VIEW joinview ASselect * from t1 left outer join t2 on t1.idf = t2.id2;Update
- Select the view you wish to update by going to
Databases>Views>View Name. - The contents of the view are displayed in the editor in the right panel.
- Correct the view description.
- Click the
"Apply"button.
Delete
- Select
Database>Views>View Name. - Select
"Delete"from the context menu. - Click the
"OK"button in the"Confirm"dialog box.
Calling
Registered views can be called with the user function SQL Function.
Example of Calling:
select * from joinview;Data Display
- Select
Database>Views>View Name. - Click on the
"Data"tab. - Displays data (up to 1,000 records) in the view. You can use the
"Column Filter"to narrow down the data.