Re: Create synonym

From: Shay Shmelzer <sshmelze_at_johnbryce.co.il>
Date: 1996/05/05
Message-ID: <318CD748.29C8_at_johnbryce.co.il>#1/1


Hong Zhou wrote:
>
> I have 50 or so tables, now I want to create synonym for them,
> same name as table name. How can I do this without manully one by one?
>
> Thanks in advance.

Try This:
spool a.sql
select 'create synonym ' ||Table_name|| ' for '|| Table_Name from tab ;
spool off
_at_a

or somthing of this kind .

-- 
+++++++++++++++++++++++++++++++ |\/\/\/|
Shay shmelzer                   |      |
John Bryce Systems - Israel     OO	)
e-mail:sshmelze_at_johnbryce.co.il c      |
				/___/  |
+++++++++++++++++++++++++++++++    )   |
Received on Sun May 05 1996 - 00:00:00 CEST

Original text of this message