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 > table in table space

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-10-05, 06:27
Klp Klp is offline
Registered User
 
Join Date: Dec 2004
Posts: 10
table in table space

Is it possible to insert a already existing table into a tablespace with an SQL ?
Reply With Quote
  #2 (permalink)  
Old 11-10-05, 08:13
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by Klp
Is it possible to insert a already existing table into a tablespace with an SQL ?
Do you mean move a table from one tablespace to another?

Unfortunately, no. You need to export-drop-create-import/load.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 11-10-05, 11:02
Klp Klp is offline
Registered User
 
Join Date: Dec 2004
Posts: 10
The table already exists but not in a tablespace ( or the default one )
Reply With Quote
  #4 (permalink)  
Old 11-10-05, 11:23
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
All tables exist in a tablespace, it's likely in USERSPACE1, the default SMS tablespace.

Same answer applies, unfortunately, it can't be moved without a drop & re-create.
__________________
--
Jonathan Petruk
DB2 Database Consultant
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