If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Alter schema

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-30-03, 05:32
sudarshan sudarshan is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Alter schema

HI,
in DB2 UDB, I have a database with name (sample), in this database, i have two schemas namely "sf", "sf123". in "sf" schema i have 10 tables. These tables i have to transfer to schema "sf123". I mean those 10 tables to be moved/copied to "sf123" schema.
These two schemas are available in same database (sample).

If any body have the idea. Please pass on your comments.


Thanks
Sudarshan
Reply With Quote
  #2 (permalink)  
Old 10-30-03, 08:27
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Check out the RENAME TABLE/INDEX SQL command in the SQL Reference manual.
Reply With Quote
  #3 (permalink)  
Old 10-30-03, 18:10
chuzhoi chuzhoi is offline
Registered User
 
Join Date: Dec 2002
Posts: 134
Rename does not support moving across schemas (at least on 8.1 for win/*nix).
If you do not want to move the data (export/load, db2look/db2move or something similar), you can probably create aliases.

regards,
dmitri
Reply With Quote
  #4 (permalink)  
Old 10-30-03, 22:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Thanks chuzhoi. THe manual was not clear on the point and I did not try it.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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