Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to read table using Synonym

Re: How to read table using Synonym

From: DA Morgan <damorgan_at_psoug.org>
Date: Thu, 01 Sep 2005 16:52:17 -0700
Message-ID: <1125618699.603432@yasure>


sunny076_at_yahoo.com wrote:
> Thank you for your reply. I want to get the metadata from the synonym.
> How can I do so? I was using the SQL syntax below to get Column name
> from Oracle Table.
> "select column_name, data_type, data_precision, data_scale
> from all_tab_columns"
>
> Thank you in advance,
>
> Sunny

SQL> create synonym t for test;

Synonym created.

SQL> select dbms_metadata.get_ddl('SYNONYM', 'T') from dual;

DBMS_METADATA.GET_DDL('SYNONYM','T')


   CREATE OR REPLACE SYNONYM "UWCLASS"."T" FOR "UWCLASS"."TEST" For more turn to Morgan's Library at www.psoug.org.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Thu Sep 01 2005 - 18:52:17 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US