oracle建表流程

--创建表空间test1
create tablespace test1
datafile 'd:\test1.dbf'
size 100m
autoextend on
next 10m

--创建用户test1.一个表空间可以有多个用户
create user test1
identified by 123456
default tablespace test1

--给用户赋权
grant dba to test1

--创建表test1
create table test1(
 id number,
 name varchar2(20)
)

猜你喜欢

转载自www.cnblogs.com/niwotaxuexiba/p/9726881.html