Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Oracle SQL statement

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

1. Tablespace

Create

Create tablespace abc datafile'/ u01 size 100Mextent management local autoallocate size 100Mextent management local autoallocate extension automatically manages segment space management auto

Delete

Drop tablespace abc including contents also deletes the data in the tablespace cascade constraints; and removes the integrity limit 2. 5. Create a tabl

Create a tabl

CREATE TABLE test1 (column_name datetype,co_n dp); id_pk PRIMARY KEY (id) primary key col2 data_type REFERENCES table1 (col1) [foreign key id_uk UNIQUE; [unique constraint that all fields in this column cannot repeat not null; non-empty ABLESPACE abc; specifies tablespace

CREATE TABLE test TABLESPACE abc AS SELECT * FROM test2; copy table

DROP TABLE test1 CASCADE CONSTRAINTS PURGE; delete table

ALTER TABLE test6 RENAME TO test3; renamed the table

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report