View Column Definition?

View Column Definition?

Post by 1443.. » Sun, 27 Jan 2002 05:09:24



Let's say that I have created a simple view like this:

create ora replace view TEMP_V1(c1)
as
select column1 from TEMP_T1;

Looking up DBA_VIEWS shows the view SQL body definition (select
column1 from TEMP_T1).  However, I do not know where the column
definition (c1) is stored.  Where can I find it?  Above is very simple
example, but for big views with many columns, I need to find out where
column definitions are.  Thank you in advance.

 
 
 

View Column Definition?

Post by Alan » Sun, 27 Jan 2002 05:34:00


Got anything against

DESC viewname

????


Quote:

> Let's say that I have created a simple view like this:

> create ora replace view TEMP_V1(c1)
> as
> select column1 from TEMP_T1;

> Looking up DBA_VIEWS shows the view SQL body definition (select
> column1 from TEMP_T1).  However, I do not know where the column
> definition (c1) is stored.  Where can I find it?  Above is very simple
> example, but for big views with many columns, I need to find out where
> column definitions are.  Thank you in advance.


 
 
 

View Column Definition?

Post by Fern?o Magalhae » Sun, 27 Jan 2002 14:14:01


Try:

    SELECT column_name
    FROM dba_tab_columns
    WHERE table_name = 'TEMP_V1';

--Fern?o


Let's say that I have created a simple view like this:

create ora replace view TEMP_V1(c1)
as
select column1 from TEMP_T1;

Looking up DBA_VIEWS shows the view SQL body definition (select
column1 from TEMP_T1).  However, I do not know where the column
definition (c1) is stored.  Where can I find it?  Above is very simple
example, but for big views with many columns, I need to find out where
column definitions are.  Thank you in advance.

 
 
 

View Column Definition?

Post by Daniel A. Morga » Sun, 27 Jan 2002 06:33:52


It isn't store anywhere because it is totally meaningless ... which I
would suggest means you should stop wasting keystrokes typing it.

Instead try:

CREATE OR REPLACE VIEW temp_vi AS
SELECT column1
FROM temp_t1;

Daniel Morgan


> Let's say that I have created a simple view like this:

> create ora replace view TEMP_V1(c1)
> as
> select column1 from TEMP_T1;

> Looking up DBA_VIEWS shows the view SQL body definition (select
> column1 from TEMP_T1).  However, I do not know where the column
> definition (c1) is stored.  Where can I find it?  Above is very simple
> example, but for big views with many columns, I need to find out where
> column definitions are.  Thank you in advance.

 
 
 

View Column Definition?

Post by Daniel A. Morga » Sun, 27 Jan 2002 06:33:52


It isn't store anywhere because it is totally meaningless ... which I
would suggest means you should stop wasting keystrokes typing it.

Instead try:

CREATE OR REPLACE VIEW temp_vi AS
SELECT column1
FROM temp_t1;

Daniel Morgan


> Let's say that I have created a simple view like this:

> create ora replace view TEMP_V1(c1)
> as
> select column1 from TEMP_T1;

> Looking up DBA_VIEWS shows the view SQL body definition (select
> column1 from TEMP_T1).  However, I do not know where the column
> definition (c1) is stored.  Where can I find it?  Above is very simple
> example, but for big views with many columns, I need to find out where
> column definitions are.  Thank you in advance.

========= WAS CANCELLED BY =======:



Date: Mon, 28 Jan 2002 02:47:19 GMT

X-No-Archive: yes
Newsgroups: microsoft.test,alt.flame.*s,comp.databases.oracle.server
NNTP-Posting-Host: w088.z064003087.lax-ca.dsl.cnc.net 64.3.87.88
Lines: 1        
Path: news.uni-stuttgart.de!news.fh-hannover.de!news-han1.dfn.de!news-kar1.dfn.de!news-fra1.dfn.de!newsfeed.hanau.net!fr.clara.net!heighliner.fr.clara.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out.visi.com!hermes.visi.com!out.nntp.be!propagator-SanJose!in.nntp.be!news-in-sanjose!sjc-feed.news.verio.net!sea-feed.news.verio.net!news.verio.net!msrnewsc1!cppssbbsa01.microsoft.com!tkmsftngp01!tkmsftngp04!u&n&a&c&anceller
Xref: news.uni-stuttgart.de control:40721041

This message was cancelled from within The Unacanceller's glorious new software, Lotus 1-2-3 For Rogue Cancellers.

 
 
 

View Column Definition?

Post by Alan » Sun, 27 Jan 2002 05:34:00


Got anything against

DESC viewname

????


Quote:

> Let's say that I have created a simple view like this:

> create ora replace view TEMP_V1(c1)
> as
> select column1 from TEMP_T1;

> Looking up DBA_VIEWS shows the view SQL body definition (select
> column1 from TEMP_T1).  However, I do not know where the column
> definition (c1) is stored.  Where can I find it?  Above is very simple
> example, but for big views with many columns, I need to find out where
> column definitions are.  Thank you in advance.

========= WAS CANCELLED BY =======:



Date: Mon, 28 Jan 2002 02:54:00 GMT

X-No-Archive: yes
Newsgroups: microsoft.test,alt.flame.*s,comp.databases.oracle.server
NNTP-Posting-Host: w088.z064003087.lax-ca.dsl.cnc.net 64.3.87.88
Lines: 1        
Path: news.uni-stuttgart.de!cert.uni-stuttgart.de!news.belwue.de!news-stu1.dfn.de!news-koe1.dfn.de!news-fra1.dfn.de!newsfeed.hanau.net!newsfeed01.sul.t-online.de!t-online.de!fr.clara.net!heighliner.fr.clara.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!news-in-sanjose!sjc-feed.news.verio.net!sea-feed.news.verio.net!news.verio.net!msrnewsc1!cppssbbsa01.microsoft.com!tkmsftngp01!tkmsftngp04!u&n&a&c&anceller
Xref: news.uni-stuttgart.de control:40721984

This message was cancelled from within The Unacanceller's glorious new software, Lotus 1-2-3 For Rogue Cancellers.

 
 
 

View Column Definition?

Post by Fern?o Magalhae » Sun, 27 Jan 2002 14:14:01


Try:

    SELECT column_name
    FROM dba_tab_columns
    WHERE table_name = 'TEMP_V1';

--Fern?o


Let's say that I have created a simple view like this:

create ora replace view TEMP_V1(c1)
as
select column1 from TEMP_T1;

Looking up DBA_VIEWS shows the view SQL body definition (select
column1 from TEMP_T1).  However, I do not know where the column
definition (c1) is stored.  Where can I find it?  Above is very simple
example, but for big views with many columns, I need to find out where
column definitions are.  Thank you in advance.

========= WAS CANCELLED BY =======:



Date: Sun, 27 Jan 2002 23:06:30 GMT

X-No-Archive: yes
Newsgroups: microsoft.test,alt.flame.*s,comp.databases.oracle.server
NNTP-Posting-Host: w088.z064003087.lax-ca.dsl.cnc.net 64.3.87.88
Lines: 1        
Path: news.uni-stuttgart.de!news.fh-hannover.de!news-han1.dfn.de!news-koe1.dfn.de!news-was.dfn.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!news-in-sanjose!sjc-feed.news.verio.net!sea-feed.news.verio.net!news.verio.net!msrnewsc1!cppssbbsa01.microsoft.com!tkmsftngp01!tkmsftngp04!u&n&a&c&anceller
Xref: news.uni-stuttgart.de control:40721050

This message was cancelled from within The Unacanceller's glorious new software, Lotus 1-2-3 For Rogue Cancellers.

 
 
 

1. REPOST: View Column Definition?

Let's say that I have created a simple view like this:

create ora replace view TEMP_V1(c1)
as
select column1 from TEMP_T1;
Looking up DBA_VIEWS shows the view SQL body definition (select
column1 from TEMP_T1).  However, I do not know where the column
definition (c1) is stored.  Where can I find it?  Above is very simple
example, but for big views with many columns, I need to find out where
column definitions are.  Thank you in advance.

========= WAS CANCELLED BY =======:



Date: Mon, 28 Jan 2002 01:52:13 GMT

X-No-Archive: yes
Newsgroups: microsoft.test,alt.flame.niggers,comp.databases.oracle.server
NNTP-Posting-Host: w088.z064003087.lax-ca.dsl.cnc.net 64.3.87.88
Lines: 1        
Path: news.uni-stuttgart.de!uni-erlangen.de!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!t-online.de!skynet.be!skynet.be!Amsterdam.Infonet!News.Amsterdam.UnisourceCS!news.telia-iberia.com!out.nntp.be!propagator-SanJose!in.nntp.be!news-in-sanjose!sjc-feed.news.verio.net!sea-feed.news.verio.net!news.verio.net!msrnewsc1!cppssbbsa01.microsoft.com!tkmsftngp01!tkmsftngp04!u&n&a&c&anceller
Xref: news.uni-stuttgart.de control:40722022

This message was cancelled from within The Unacanceller's glorious new software, Lotus 1-2-3 For Rogue Cancellers.

2. Visio2000 Enterprise and slammer

3. Msg 4409: The columns in the query definition and the view definition do not match

4. S-Designor modifications to SYBASE 10

5. 4409: The columns in the query definition and the view definition do not match

6. jdbc and MS Access 2000 question

7. err mess: view definition includes no output columns

8. Login user/name discrepancy

9. Viewing a view definition

10. How can I use stored procedures in a view definitions

11. Help with view definition.

12. View definition for sql and oracle

13. Using stored procedure to retrieve view definition