当前位置:网站首页>Oracle advanced (V) schema solution
Oracle advanced (V) schema solution
2022-07-07 13:34:00 【InfoQ】
One 、 Definition
schemaschemaschematables, views, sequences, stored procedures, synonyms, indexes, clusters, and database linksschemaschemaschemaschemaOracleschemaschemacreate schemaschemaschemshcemaschemaschemauserschemaschemaschemashemanselect * from emp;select * from scott.empschema.objectschemaschemaTwo 、 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边栏推荐
- 2022-7-6 Leetcode 977.有序数组的平方
- ROS机器人更换新雷达需要重新配置哪些参数
- postgresql array类型,每一项拼接
- clion mingw64中文乱码
- Talk about pseudo sharing
- Indoor ROS robot navigation commissioning record (experience in selecting expansion radius)
- 单片机学习笔记之点亮led 灯
- MongoDB命令汇总
- Pay close attention to the work of safety production and make every effort to ensure the safety of people's lives and property
- 靠卖概念上市,认养一头牛能走多远?
猜你喜欢

Digital IC Design SPI

My "troublesome" subordinates after 00: not bad for money, against leaders, and resist overtime

Cinnamon Applet 入门

High end for 8 years, how is Yadi now?

Getting started with MySQL

Fast development board pinctrl and GPIO subsystem experiment for itop-imx6ull - modify the device tree file

【堡垒机】云堡垒机和普通堡垒机的区别是什么?

Flink | multi stream conversion

Enregistrement de la navigation et de la mise en service du robot ROS intérieur (expérience de sélection du rayon de dilatation)

2022-7-7 Leetcode 844.比较含退格的字符串
随机推荐
[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
Custom thread pool rejection policy
分屏bug 小记
MongoDB内部的存储原理
高端了8年,雅迪如今怎么样?
Scripy tutorial classic practice [New Concept English]
Pay close attention to the work of safety production and make every effort to ensure the safety of people's lives and property
Signal strength (RSSI) knowledge sorting
工具箱之 IKVM.NET 项目新进展
华为镜像地址
JS slow motion animation principle teaching (super detail)
Introduction and basic use of stored procedures
10 张图打开 CPU 缓存一致性的大门
Mongodb slice summary
Realize the IP address home display function and number home query
Flink | 多流转换
Data refresh of recyclerview
[1] Basic knowledge of ros2 - summary version of operation commands
Clion mingw64 Chinese garbled code
MySQL error 28 and solution