查询
select * from 表名
增:
insert into 表名(id,name) values ('1','name')
insert into 表名(id,name) select id name from t_maya
增加表字段
alter table t_user add sex varchar2(10);
删:
delect from 表名
delete 表名;数据可以回滚,只是数据不可用,但会造成高位现象
truncate table 表名;数据不可以回滚,删除表中所有的数据,没有磁盘碎片
删除表字段
alter table t_user drop column sex
drop table 表名 删除表结构及内容
改:
update 表名 set id=‘’修改属性
修改数据类型
alter table 表名 modify name varchar2(256)