Re: SELECT Help!

From: Jay Broughton <jbrought_at_sugarland.unocal.com>
Date: 1996/07/17
Message-ID: <31ED5B74.446B9B3D_at_sugarland.unocal.com>#1/1


Chakravarthy Nalamotu wrote:
>
> Hi,
> Can some one let me know what's wrong with this SELECT
> statemnet.
>
> SELECT 'CREATE PUBLIC SYNONYM ' ||table_name||
> ' FOR user.' ||table_name||
> FROM user_tables;
>
> I am trying to create public synonyms on the tables
> in a schma with the same name as the table name.
> I was trying to use the above select statement
> to generate the script, but was getting a missing expression
> error.
>
> Thank you for your replies.
> Kittu.

Try this:

SELECT 'CREATE PUBLIC SYNONYM ' ||table_name||

        ' FOR user.'||table_name||';'
        FROM user_tables;
Received on Wed Jul 17 1996 - 00:00:00 CEST

Original text of this message