mysql - MySQL中模式/数据库之间的区别

标签 mysql database schema database-schema

MySQL 中的模式和数据库之间有区别吗?在 SQL Server 中,数据库是与架构相关的更高级别的容器。

我读到 Create SchemaCreate Database 在 MySQL 中做的事情本质上是一样的,这让我相信模式和数据库对于同一个对象来说是不同的词。

最佳答案

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.

关于mysql - MySQL中模式/数据库之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11618277/

相关文章:

database - Firebase:如何有效跟踪用户/记录更改历史

sql - 大事务表是个问题吗?

javascript - A-Frame 中的 "hidden"架构类型是什么?

mysql - 我想在具有整数名称的属性中使用聚合函数

php - 如何按字母顺序排序 php while 循环变量?

java - Hibernate 多对多协会?

javascript - Meteor 中的简单架构错误

mysql - 将表的列复制到另一个表 SQL

mysql - 如果表中的所有列都是某个唯一键的一部分,可以吗?

node.js - 使用 JSON-Schema 定义模式并使用 Mongoose?