SQL语句复习[专题三] DML 数据操作语言[insert into update delete]创建表 简单的方式[使用查询的结果集来创建一张表]create table temp as select * from empselect * from temp--删除表drop table temp --创建一张空表[只是复制了表的结构]select * from emp where 1!=1create table temp as select * from emp where 1!=1 -…
SQL语句复习[专题一] --创建用户 scott 并设置密码为 tiger create user scott identified by tiger --用户刚刚创建没有任何的权限,连登录的权限都没有 --给用户授予权限. --角色:一个角色是一个权限的集合. --常用的角色:connect Resource. grant connect, resource to scott --给scott 导入4张表. --复制scott.sql中的内容,粘贴到一个命令窗口. --BONUS:奖金表:…