oracle select语句
来源:互联网 发布:破伤风配置的算法 编辑:程序博客网 时间:2024/06/05 19:27
查询当前用户的表格~
select table_name from user_tables;
查询所有用户的表名~
select table_name from all_tables;
查询用户~ dba_users需要用户有权限
select * from all_users;select * from user_users;select * from dba_users;
all_users、user_users、dba_users的区别:
ALL_USERS
ALL_USERS
lists all users of the database visible to the current user. This view does not describe the users (see the related views).
Related Views
DBA_USERS
describes all users of the database, and contains more columns thanALL_USERS
.USER_USERS
describes the current user, and contains more columns thanALL_USERS
.
DBA_USERS
DBA_USERS
describes all users of the database.
Related View
USER_USERS
describes the current user. This view does not display the PASSWORD
or PROFILE
columns.
USERNAME
VARCHAR2(30)
NOT NULL
Name of the userUSER_ID
NUMBER
NOT NULL
ID number of the userPASSWORD
VARCHAR2(30)
ACCOUNT_STATUS
VARCHAR2(32)
NOT NULL
Account status:OPEN
EXPIRED
EXPIRED(GRACE)
LOCKED(TIMED)
LOCKED
EXPIRED & LOCKED(TIMED)
EXPIRED(GRACE) & LOCKED(TIMED)
EXPIRED & LOCKED
EXPIRED(GRACE) & LOCKED
LOCK_DATE
DATE
LOCKED
EXPIRY_DATE
DATE
DEFAULT_TABLESPACE
VARCHAR2(30)
NOT NULL
Default tablespace for dataTEMPORARY_TABLESPACE
VARCHAR2(30)
NOT NULL
Name of the default tablespace for temporary tables or the name of a tablespace groupCREATED
DATE
NOT NULL
User creation datePROFILE
VARCHAR2(30)
NOT NULL
User resource profile nameINITIAL_RSRC_CONSUMER_GROUP
VARCHAR2(30)
EXTERNAL_NAME
VARCHAR2(4000)
See Also:
USER_USERS
USER_USERS
describes the current user. Its columns (except for PASSWORD
and PROFILE
) are the same as those in DBA_USERS
.
See Also:
"DBA_USERS"
forget it.....上述都是官方的,看看如下民间总结的吧:
在Oracle中DBA_*、ALL_*以及USER_*的区别
DBA_*意为DBA拥有的或可以访问的所有的对象。
ALL_*意为某一用户拥有的或可以访问的所有的对象。
USER_*意为某一用户所拥有的所有的对象。
查询当前用户权限
select * from all_tab_privs;select * from dba_tab_privs;select * from user_tab_privs;
- oracle select语句学习
- oracle insert select语句
- Oracle select 查询语句
- oracle select语句
- Oracle之SELECT语句
- Oracle Select查询语句
- select语句的用法--oracle
- Select 语句 oracle /MSSQL 对比
- Oracle学习----select基本语句
- Oracle Select SQL语句总结
- Oracle Select语句执行顺序
- oracle select into 动态语句
- Oracle select语句执行顺序
- 【01】 - Oracle基本select语句
- Oracle select语句执行顺序
- Oracle之select查询语句
- ORACLE数据库-查询语句SELECT
- Oracle之基本select语句
- 关于Blocking IO, Non-Blocking IO 和 Asynchronous I/O的理解
- html中列表的嵌套
- Java文件路径(getResource)
- C/C++在线编译器
- iOS开发之保存照片到系统相册(Photo Album)
- oracle select语句
- iOS 常用颜色值转换类
- 极光推送(JPush)官方文档
- 数据结构03_栈、队列和数组
- nginx内存池实现原理
- 嵌入式软件测试工具和测试方法
- 最小长方形_1020
- extern "C"用法解析
- 数据仓库搭建全过程解析--通俗易懂