oracle学习实践记录1.pdf

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:481

[size=14px][backcolor=inherit][backcolor=rgb(155, 187, 89)][size=22px]查询当前登录连接的用户
[backcolor=inherit][backcolor=rgb(155, 187, 89)]SQL> show user
[backcolor=inherit][backcolor=rgb(155, 187, 89)]USER is "SYS"
[backcolor=inherit][backcolor=rgb(155, 187, 89)]SQL> conn scott/wjvogue
[backcolor=inherit][backcolor=rgb(155, 187, 89)]Connected.
[backcolor=inherit][backcolor=rgb(155, 187, 89)]SQL> show user
[backcolor=inherit][backcolor=rgb(155, 187, 89)]USER is "SCOTT"
[backcolor=inherit][backcolor=rgb(155, 187, 89)]SQL>

[size=14px][backcolor=inherit][backcolor=inherit][backcolor=rgb(250, 192, 143)][size=22px]查询当前用户下的所有数据库表

[backcolor=inherit][size=14px][backcolor=inherit][backcolor=rgb(250, 192, 143)]SQL> show user;
[backcolor=inherit][backcolor=rgb(250, 192, 143)]USER is "SYS"
[backcolor=inherit][backcolor=rgb(250, 192, 143)]SQL> conn scott/wjvogue
[backcolor=inherit][backcolor=rgb(250, 192, 143)]Connected.
[backcolor=inherit][backcolor=rgb(250, 192, 143)]SQL> select table_name from user_tables;
[backcolor=inherit][backcolor=rgb(250, 192, 143)]

[backcolor=inherit][backcolor=rgb(250, 192, 143)]TABLE_NAME
[backcolor=inherit][backcolor=rgb(250, 192, 143)]------------------------------------------------------------
[backcolor=inherit][backcolor=rgb(250, 192, 143)]DEPT
[backcolor=inherit][backcolor=rgb(250, 192, 143)]EMP
[backcolor=inherit][backcolor=rgb(250, 192, 143)]BONUS
[backcolor=inherit][backcolor=rgb(250, 192, 143)]SALGRADE
[backcolor=inherit][backcolor=rgb(250, 192, 143)]

[backcolor=inherit][backcolor=rgb(250, 192, 143)]SQL>

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】