What is the use of tablespace in the above query?

僤鯓⒐⒋嵵緔 提交于 2019-12-11 06:21:28

问题


CREATE TABLE ts_pcode_tb_incase
    TABLESPACE USERS
    AS
    SELECT *
      FROM ts_pcode_tb;

What is the use of tablespace in the above query?


回答1:


A tablespace is a logical group of data files in a database. A database typically contains at least one tablespace, and usually two or more. Within the database, the tablespace plays a role similar to that of a folder on the hard drive of a computer.

Some database programs, such as Oracle, automatically create a tablespace called SYSTEM that contains general information about the structure and contents of the database. A small database can be entirely contained in the SYSTEM tablespace, but in most cases, user data is placed in other tablespaces.

The files in a tablespace usually share a common characteristic. For example, a database for a wholesale distributor might consist of tablespaces entitled ACCOUNTING, ORDERS, SHIPPING, SERVICE, and SYSTEM. Each tablespace might contain only one data file, or thousands of files, or anything in between. Tablespaces can be created, deleted, and merged, just as can the folders on the hard drive of a computer.

Reference...



来源:https://stackoverflow.com/questions/18959643/what-is-the-use-of-tablespace-in-the-above-query

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!