ASP源码.NET源码PHP源码JSP源码JAVA源码DELPHI源码PB源码VC源码VB源码Android源码
当前位置:首页 >> 数据库 >> DB2 >> DB2查看当前用户模式及切换用户的方法

DB2查看当前用户模式及切换用户的方法

来源:网络整理     时间:2014-11-15     关键词:

本篇文章主要介绍了"DB2查看当前用户模式及切换用户的方法",对于DB2感兴趣的同学可以参考一下:

1. 连接数据库:db2 connect to study

2. 查询当前用户模式:select current schema from sysibm.sysdummy1 或 select current schema from sysibm.dual

3. 切换用户模式:set current schema toms

4. 切换用户: db2 connect to cpsdb user Administrator using 111111

5. 给其他用户授权:db2 grant dbadm on database to user odsuser

6. 查看当前用户的权限: db2 get authorizations

以上就介绍了DB2查看当前用户模式及切换用户的方法,包括了方面的内容,希望对DB2有兴趣的朋友有所帮助。

本文网址链接:http://www.codes51.com/article/detail_92057.html

相关图片

相关文章