how can i change the default table space to other without drop the
"USERSPACE1" ??
CREATE TABLE test (
[...]
) IN mytablespace;
Regards,
Thomas
sorry, I did'nt read your question
exactly..
Regards,
Thomas
>
> >
> > if i create a table without tablespace in database , the db2 will create the
> > table within default table spaces "USERSPACE1"
> >
> > how can i change the default table space to other without drop the
> > "USERSPACE1" ??
--
Danke!
Thomas Wiedmann
-----------------------------------------------
Toolbox, die Zeitschrift für Softwareentwickler
http://www.toolbox-mag.de
Have a look at the CREATE TABLE statement in the SQL Reference. There is the
algorithm on how DB2 decides which tablespace a newly created table will go
in.
--
Knut Stolze
DB2 UDB Spatial Extender
IBM Silicon Valley Lab
If you create another table space just like USERSPACE1, the next
"create table" statement without table space specified will use the new
table space.
The following is the order of tablespaces to be used if you don't specify
tablepace in "create table" statement:
1. table space IBMDEFAULTGROUP with sufficient page size;
2. user created table spaces of the smallest pagesize that is sufficient for this table;
3. USERSPACE1 with sufficient page size
HTH,
db2user2001
"Charles" <and...@ms1.url.com.tw> wrote in message news:<9gd7fl$6...@netnews.hinet.net>...
"Charles" <and...@ms1.url.com.tw> 撰寫於郵件
news:9gd7fl$6...@netnews.hinet.net...