List view text from user_views : USER_VIEWS « System Tables Views « Oracle PL / SQL

Oracle PL / SQL
1. Aggregate Functions
2. Analytical Functions
3. Char Functions
4. Constraints
5. Conversion Functions
6. Cursor
7. Data Type
8. Date Timezone
9. Hierarchical Query
10. Index
11. Insert Delete Update
12. Large Objects
13. Numeric Math Functions
14. Object Oriented Database
15. PL SQL
16. Regular Expressions
17. Report Column Page
18. Result Set
19. Select Query
20. Sequence
21. SQL Plus
22. Stored Procedure Function
23. Subquery
24. System Packages
25. System Tables Views
26. Table
27. Table Joins
28. Trigger
29. User Previliege
30. View
31. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Oracle PL / SQL » System Tables Views » USER_VIEWS 
List view text from user_views
  
SQL>
SQL> set    long 999
SQL> column text format a42 word wrapped
SQL>
SQL> select view_name, text
  2  from   user_views;

VIEW_NAME                      TEXT
------------------------------ ------------------------------------------
EMP_HQ                         select "ID","FNAME","LNAME","START_DATE","
                               END_DATE","SALARY","CITY","DESCRIPTION" fr
                               om emp
                               where id = '2'

V                              select "X" from t
AVG_SAL                        select trunc(avg(salary)) avg_sal
                               from emp

EMPDEPT_V                      select e.empno
                               ,      e.ENAME
                               ,      e.init
                               ,      d.dname
                               ,      d.location
                               ,      m.ENAME    as MANAGER
                               from   employees   e
                                      join
                                      departments d using (deptno)
                                      join

VIEW_NAME                      TEXT
------------------------------ ------------------------------------------
                                      employees   m on (m.empno = d.mgr)

DEPT_SAL                       select dname,round(avg(sal),2avgSalary
                                   from   emp,dept
                                   where  emp.deptno = dept.deptno
                                  group by dname

ALL_ORACLE_ERRORS              SELECT "ERRNUMBER","MESSAGE" FROM TABLE(Or
                               acleErrorTable())

INVENTORY_VIE                  SELECT i.item_id, i.reorder_status, i.pric
                               e
                                    FROM inventory_tbl i

TOP_EMP                        SELECT empno, ename, sal
                                 FROM   emp
                                 WHERE  sal > 2999

EMP_BONUS                      SELECT dname, empno, ename, sal, sal * .15

VIEW_NAME                      TEXT
------------------------------ ------------------------------------------
                                bonus
                                   FROM   emp a, dept b
                                   WHERE  a.deptno = b.deptno

SHARED                         SELECT   shared_id
                                 ,        shared_text
                                 FROM     shared_all
                                 WHERE    NVL(striping_id,0=
                                            NVL(TO_NUMBER(SUBSTR(USERENV(
                               'CLIENT_INFO'),1,10)),0)

PHONE_LIST                     select emp_id, firstname || ' ' || midinit
                                || '. ' || lastname as name,'(' || area_c
                               ode || ')' || phone as telephone#
                               from emp


11 rows selected.

SQL>

   
    
  
Related examples in the same category
1. Query user_views
2. Query user-defined view info from USER_VIEWS table
3. Get all views
4. If view exists, drop view
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.