首页 > 代码库 > sqlplus
sqlplus
sqlplus / as sysdba
show user 查看当前是谁登陆
[oracle@node1 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Mon Jun 5 10:35:05 2017 Copyright (c) 1982, 2009, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> show user USER is "SYS" SQL>
sys 在oracle中最高权限
解锁scott
alter user scott identified by tiger account unlock;
scott 用户下有几张表
select * from tab;
连接符的用法:用查询生成批量操作的命令
select ‘drop table ‘||tname||‘;‘ from tab;
SQL> select ‘drop table ‘||tname||‘;‘ from tab; ‘DROPTABLE‘||TNAME||‘;‘ ------------------------------------------ drop table BONUS; drop table DEPT; drop table EMP; drop table SALGRADE; SQL> select * from tab; TNAME TABTYPE CLUSTERID ------------------------------ ------- ---------- BONUS TABLE DEPT TABLE EMP TABLE SALGRADE TABLE SQL>
sqlplus
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。