![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Oracle
残缺的孤独
要么强大,要么听话。
展开
-
4---表的管理
1.表的复制 (1)复制表结构和表内容 create table emp2 as select * from emp; (2)只复制表结构 create table emp3 as select * from emp where 1=2; 2.增加一列 alter table tableName add(columnName columntype); 3.修原创 2013-10-30 22:01:38 · 713 阅读 · 0 评论 -
oracle 视图、序列以及同义词
1.视图 (1)功能:包含了一条复杂的查询语句;不包含真实数据 (2)创建 create view 视图名称 as 子查询; 注意:当使用scott用户创建用户时,提示权限不足,解决方法如下: 以system账号登陆,然后执行: grant create any view to scott; (3)删除 drop view 视图名称; 当需要修改时,若不想原创 2013-11-02 11:16:20 · 1086 阅读 · 0 评论 -
oracle用户管理、备份及恢复
1.用户管理 (1)创建 create user 用户名 identified by 密码; 注意:只能在管理员账户下创建。 (2)授权 grant 权限1,权限2,...to 用户; 赋予连接、资源角色: grant connect,resource to 用户; (3)修改密码 alter user 用户名 identified by 密码;原创 2013-11-02 11:53:22 · 816 阅读 · 0 评论