在Oracle中,每个用户都是一个模式,默认情况下,每个用户创建的对象都在其模式中创建。
在MySQL中,用户及其权限存储在mysql.user
中,但是当他们创建了创建对象的对象时?
每个用户是否有架构的概念?
我们可以为MySQL和Oracle中的表和索引创建单独的模式吗?
答案 0 :(得分:2)
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.