MySQL 中的模式和数据库之间有区别吗?在 SQL Server 中,数据库是与架构相关的更高级别的容器。
我读到 Create Schema
和 Create Database
在 MySQL 中做的事情本质上是一样的,这让我相信模式和数据库对于同一个对象来说是不同的词。
最佳答案
如 MySQL Glossary 中所定义:
In MySQL, physically, a schema is synonymous with a database. You can substitute the keyword
SCHEMA
instead ofDATABASE
in MySQL SQL syntax, for example usingCREATE SCHEMA
instead ofCREATE 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.
关于mysql - MySQL中模式/数据库之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11618277/