当前位置:网站首页>ORACLE进阶(五)SCHEMA解惑
ORACLE进阶(五)SCHEMA解惑
2022-07-07 10:55:00 【InfoQ】
一、定义
schema
schema
schema
tables, views, sequences, stored procedures, synonyms, indexes, clusters, and database links
schema
schema
schema
schema
Oracle
schema
schema
create schema
schema
schem
shcema
schema
schema
user
schema
schema
schema
sheman
select * from emp;
select * from scott.emp
schema.object
schema
schema
二、举例
SQL> Gruant dba to scott
SQL> create table test(name char(10));
Table created.
SQL> create table system.test(name char(10));
Table created.
SQL> insert into test values('scott');
1 row created.
SQL> insert into system.test values('system');
1 row created.
SQL> commit;
Commit complete.
SQL> conn system/manager
Connected.
SQL> select * from test;
NAME
----------
system
SQL> ALTER SESSION SET CURRENT_SCHEMA = scott; --改变用户缺省schema名
Session altered.
SQL> select * from test;
NAME
----------
scott
SQL> select owner ,table_name from dba_tables where table_name=upper('test');
OWNER TABLE_NAME
------------------------------ ------------------------------
SCOTT TESTSYSTEM TEST
schema
边栏推荐
- Smart cloud health listed: with a market value of HK $15billion, SIG Jingwei and Jingxin fund are shareholders
- 环境配置篇
- Shortcut key of Bash
- 有什么类方法或是函数可以查看某个项目的Laravel版本的?
- Leetcode skimming: binary tree 22 (minimum absolute difference of binary search tree)
- Layer pop-up layer closing problem
- 2022 practice questions and mock examination of the third batch of Guangdong Provincial Safety Officer a certificate (main person in charge)
- 企业级自定义表单引擎解决方案(十二)--体验代码目录结构
- 详解ThinkPHP支持的URL模式有四种普通模式、PATHINFO、REWRITE和兼容模式
- PHP调用纯真IP数据库返回具体地址
猜你喜欢
Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
智云健康上市:市值150亿港元 SIG经纬与京新基金是股东
Charles: four ways to modify the input parameters or return results of the interface
Master公式。(用于计算递归的时间复杂度。)
图形对象的创建与赋值
Go语言学习笔记-结构体(Struct)
Day-15 common APIs and exception mechanisms
2022 practice questions and mock examination of the third batch of Guangdong Provincial Safety Officer a certificate (main person in charge)
Star Enterprise Purdue technology layoffs: Tencent Sequoia was a shareholder who raised more than 1billion
[pytorch practice] use pytorch to realize image style migration based on neural network
随机推荐
test
人均瑞数系列,瑞数 4 代 JS 逆向分析
2022-07-07 Daily: Ian Goodfellow, the inventor of Gan, officially joined deepmind
高瓴投的澳斯康生物冲刺科创板:年营收4.5亿 丢掉与康希诺合作
ip2long之后有什么好处?
2022危险化学品生产单位安全生产管理人员考题及在线模拟考试
HZOJ #235. Recursive implementation of exponential enumeration
Four functions of opencv
DHCP 动态主机设置协议 分析
Sorting, dichotomy
[crawler] avoid script detection when using selenium
有什么类方法或是函数可以查看某个项目的Laravel版本的?
Day-17 connection set
Image pixel read / write operation
Grep of three swordsmen in text processing
. Net ultimate productivity of efcore sub table sub database fully automated migration codefirst
Sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
Master公式。(用于计算递归的时间复杂度。)
非分区表转换成分区表以及注意事项
Leetcode skimming: binary tree 20 (search in binary search tree)