当前位置:网站首页>Oracle advanced (V) schema solution
Oracle advanced (V) schema solution
2022-07-07 13:34:00 【InfoQ】
One 、 Definition
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
Two 、 give an example
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; -- Change the user default schema name
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
边栏推荐
- [dark horse morning post] Huawei refutes rumors about "military master" Chen Chunhua; Hengchi 5 has a pre-sale price of 179000 yuan; Jay Chou's new album MV has played more than 100 million in 3 hours
- Problems that cannot be accessed in MySQL LAN
- JS determines whether an object is empty
- 2022-7-6 Leetcode27.移除元素——太久没有做题了,为双指针如此狼狈的一天
- xshell连接服务器把密钥登陆改为密码登陆
- Pcap learning notes II: pcap4j source code Notes
- QQ的药,腾讯的票
- 存储过程的介绍与基本使用
- 【黑马早报】华为辟谣“军师”陈春花;恒驰5预售价17.9万元;周杰伦新专辑MV 3小时播放量破亿;法华寺回应万元月薪招人...
- Vscade editor esp32 header file wavy line does not jump completely solved
猜你喜欢
10 张图打开 CPU 缓存一致性的大门
为租客提供帮助
靠卖概念上市,认养一头牛能走多远?
Flink | 多流转换
Error lnk2019: unresolved external symbol
OSI 七层模型
Cinnamon taskbar speed
High end for 8 years, how is Yadi now?
Japanese government and enterprise employees got drunk and lost 460000 information USB flash drives. They publicly apologized and disclosed password rules
JS slow motion animation principle teaching (super detail)
随机推荐
Introduction and basic use of stored procedures
【黑马早报】华为辟谣“军师”陈春花;恒驰5预售价17.9万元;周杰伦新专辑MV 3小时播放量破亿;法华寺回应万元月薪招人...
Clion mingw64 Chinese garbled code
Write it down once Net a new energy system thread surge analysis
Scrapy教程经典实战【新概念英语】
Redis只能做缓存?太out了!
LED light of single chip microcomputer learning notes
Introduce six open source protocols in detail (instructions for programmers)
2022-7-6 Leetcode27.移除元素——太久没有做题了,为双指针如此狼狈的一天
Some principles of mongodb optimization
云计算安全扩展要求关注的安全目标和实现方式区分原则有哪些?
JS function 返回多个值
Cinnamon taskbar speed
OSI 七层模型
室內ROS機器人導航調試記錄(膨脹半徑的選取經驗)
Navicat运行sql文件导入数据不全或导入失败
单片机原理期末复习笔记
QQ medicine, Tencent ticket
2022-7-6 Leetcode 977.有序数组的平方
服务器到服务器 (S2S) 事件 (Adjust)