Views can be created to restrict access to specific rows or columns of a table. A view can be created from one or more tables and is determined by the query used to create the view.
You can perform the following operations on an existing view:
Follow the steps below to export view the DDL:
The Data Studio Security Disclaimer dialog box is displayed.
The Save As dialog box is displayed.
The Export message and status bar display the status of the completed operation.
Database Encoding |
File Encoding |
Supports Exporting DDL |
---|---|---|
UTF-8 |
UTF-8 |
Yes |
GBK |
Yes |
|
LATIN1 |
Yes |
|
GBK |
GBK |
Yes |
UTF-8 |
Yes |
|
LATIN1 |
No |
|
LATIN1 |
LATIN1 |
Yes |
GBK |
No |
|
UTF-8 |
Yes |
Individual or batch dropping can be performed on views. Refer to Batch Dropping Objects for batch dropping.
Follow the steps below to drop the view:
The Drop View dialog box is displayed.
The status bar displays the status of the completed operation.
Follow the steps below to drop a view and its dependent database objects:
The Drop View dialog box is displayed.
The status bar displays the status of the completed operation.
Follow the steps below to rename a view:
The Rename View dialog box is displayed.
The status bar displays the status of the completed operation.
Follow the steps below to set the schema for a view:
The Set Schema dialog box is displayed.
The status bar displays the status of the completed operation.
If the required schema contains a view with the same name as the current view, then Data Studio does not allow setting the schema for the view.
Follow the steps below to view the DDL of the view:
The DDL is displayed in a new SQL Terminal tab. You must refresh the Object Browser to view the latest DDL.
Follow the steps below to set the default value for a column in the view:
A dialog box with the current default value (if it is set) is displayed which prompts you to provide the default value.
Data Studio displays the status of the operation in the status bar.
Follow the steps below to view the properties of the View:
The properties (General and Columns) of the selected View is displayed in different tabs.
If the property of a View is modified that is already opened, then refresh and open the properties of the View again to view the updated information on the same opened window.
Follow the steps below to grant/revoke a privilege:
The Grant/Revoke dialog box is displayed.