oracle数据库基本语句
DEPT表结构: EMP表结构: --创建表空间 create tablespace itheima --指定数据文件位置 datafile 'C:\itheima.dbf' --指定大小 size 100m autoextend on next 10m; --删除表空间 --drop tablespace itheima --创建用户 create user itheima identified by itheima default tablespace itheima; drop user itheime; --给用户授权 --oracle数据库中的常用角色 connect--链接角色 resource--开发者角色(我们的) dba--超级管理员角色 --给itheima授权dba角色 grant dba to itheima; --切换到itheima用户 --创建person表 create table person( pid number(20), pname varchar2(10) ); --修改列的名称 alter table person rename column gender to sex; alter table person drop column sex; --修改表结构 --添加一列 alter table person add gender