--新建表空间
create tablespace
chenjin_tablespace --创建表空间
datafile
"c:appadministratororadataorclchenjin.dbf"
--指定文件路径
size 1m
--指定大小
autoextend on;
--让数据库自增空间
--创建用户,而且关联响应表空间
create user
lambkin --用户名
identified by 2115628 --密码
default tablespace
chenjin_tablespace --关联表空间
--给用户受权
grant connect,resource to lambkin
; --受权
--建表
create table master (
id number
primary key,
name
nvarchar2(20) not null,
password
nvarchar2(20) not null,
status CHAR(1)
DEFAULT 1 not null
);