在Oracle中,每个用户都是一个模式,默认情况下,每个用户创建的对象都是在他们的模式中创建的。
在MySQL中,用户及其权限存储在mysql.user中,但是当他们创建对象时,他们是在哪里创建的呢?
是否有针对每个用户的模式的概念?
我们能否像MySQL中的Oracle那样为表和索引创建单独的模式?
发布于 2013-12-27 12:56:20
如MySQL Glossary中所定义
In MySQL, physically, a schema is synonymous with a database.
You can substitute the keyword SCHEMA instead of DATABASE in MySQL SQL syntax,
for example using CREATE SCHEMA instead of CREATE DATABASE.
Some other database products draw a distinction. For example, in the Oracle
Database product, a schema represents only a part of a database: the tables
and other objects owned by a single user.https://stackoverflow.com/questions/20794961
复制相似问题