分类: Oracle
2008-08-28 13:52:15
数据类型
Varchar2(size) 可变字符数据
Char(size) 固定长度字符数据
Number(p,s) 数值型
Date 日期时间型
Long 可变长度的字符型,最大
Clog 单字节的大型字符对象,最大
Raw and long raw 二进制型
Blog 二进制大型对象,最大可达
Bfile 二进制数据,在数据外部存储文件,最大
alter table student add( stuPhone varchar(18)); // 向student表中插入字段
alter table student modify ( stuname varchar(12)); //修改表中的字段
alter table student set unused column stuXX; //将sutduent表中的stuXX设置为无用状态,此时将在查询时看不到此字段了
alter table student drop unused columns; //删除表中无用的字段
alter table student add constraint pk_stuno primary key(stuno); //设置表中约束
alter table student drop constraint pk_stuno; //清除表中约束
desc user_constraints; //查看表中字段