开发者

Where will the tablespace be stored?

开发者 https://www.devze.com 2023-01-15 04:35 出处:网络
I am creating a table with tablespace开发者_Go百科: CREATE TABLE SALARY..... IN ACCOUNTING INDEX IN ACCOUNT_IDX

I am creating a table with tablespace开发者_Go百科:

CREATE TABLE SALARY.....
     IN ACCOUNTING INDEX IN ACCOUNT_IDX 

Where will the Accounting and Account_IDX be created?


The script that you have above will create SALARY in the ACCOUNTING tablespace, with indexes for that table in ACCOUNT_IDX tablespace.

The ACCOUNTING and ACCOUNT_IDX tablespaces need to be created in a separate script that has CREATE TABLESPACE statements.

If you look at the syntax for CREATE TABLESPACE, the USING part of the statement will tell DB2 where to put the files for the tablespace.

DB2 Create Tablespace Reference

0

精彩评论

暂无评论...
验证码 换一张
取 消