Getting Information on View Definitions with user_views view
You can also retrieve information about your views from the user_views
view.
Some of the columns in user_views
:
Column | Type | Description |
---|---|---|
view_name | VARCHAR2(30) | Name of the view |
text_length | NUMBER | Number of characters in the view's subquery |
text | LONG | Text of the view's subquery |
all_views
has retrieve information on all the indexes you have access to.
SQL> SELECT view_name, text_length, text
2 FROM user_views
3 WHERE view_name = 'EMP_VIEW';
VIEW_NAME TEXT_LENGTH
------------------------------ -----------
TEXT
--------------------------------------------------
EMP_VIEW 85
SELECT "EMPNO","ENAME","JOB","SAL","DEPTNO"
FROM emp
WHERE sal < 1500
WITH READ
Home »
Oracle »
Table »
Oracle »
Table »
Views:
- Creating and Using a View
- Creating and Using Simple Views
- Performing an INSERT Using a View
- A View with a CHECK OPTION Constraint
- View with a READ ONLY Constraint
- Getting Information on View Definitions with DESCRIBE command
- Getting Information on View Definitions with user_views view
- Retrieving Information on View Constraints
- Creating and Using Complex Views
- Modifying a View
- Alter the constraints on a view using ALTER VIEW
- Dropping a View
Related: