Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 11:37 AM
gaozj111@yahoo.com.cn
Guest
 
Posts: n/a
Default i want to rename the table schema

Hello:

Now i want to rename the table schema

for example:

there is one table ,whose name is A.TEST,the A is the schema name,
now i want to rename the A TO B.
I want to get the B.TEST table.

What i should do .
Pls help me.
Thanks with best regards.
Jones

  #2  
Old November 12th, 2005, 11:37 AM
Phil Sherman
Guest
 
Posts: n/a
Default Re: i want to rename the table schema

As far as I know, you can't change the schema name. RENAME will change
the table name. There are two possibilities:

1. CREATE TABLE B.TEST LIKE A.TEST
INSERT INTO B.TEST SELECT * FROM A.TEST
DROP TABLE A.TEST

2. CREATE ALIAS B.TEST FOR A.TEST

The second makes it appear theat B.TEST is the table without changing
the underlying object.

Phil Sherman

gaozj111@yahoo.com.cn wrote:[color=blue]
> Hello:
>
> Now i want to rename the table schema
>
> for example:
>
> there is one table ,whose name is A.TEST,the A is the schema name,
> now i want to rename the A TO B.
> I want to get the B.TEST table.
>
> What i should do .
> Pls help me.
> Thanks with best regards.
> Jones
>[/color]
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,164 network members.