创建新表
--create table 命令可用于建表
create table 表名
(字段名1 字段类型 primary key,
字段名2 字段类型 not null,
字段名3 字段类型 default 默认值
);
create table t1
(c1 int primary key,
c2 varchar2(10) not null,
c3 char(1) default 'a'
);
利用现有的表创建表
create table t2 as select * from t; --常用
create table t3 as select c1,c2,c3 from t;
create table t4 as select * from t where i= 2;