Difference Between Schema / Database in MySQL(MySQL中架构/数据库之间的区别)
问题描述
MySQL 中的模式和数据库之间有区别吗?在 SQL Server 中,数据库是与架构相关的更高级别的容器.
Is there a difference between a schema and a database in MySQL? In SQL Server, a database is a higher level container in relation to a schema.
我读到 Create Schema 和 Create Database 在 MySQL 中做的事情本质上是一样的,这让我相信模式和数据库是相同对象的不同词.
I read that Create Schema and Create Database do essentially the same thing in MySQL, which leads me to believe that schemas and databases are different words for the same objects.
推荐答案
如MySQL 术语表中所定义:
在 MySQL 中,模式在物理上与数据库同义.您可以在 MySQL SQL 语法中用关键字 SCHEMA 代替 DATABASE,例如使用 CREATE SCHEMA 而不是 CREATE DATABASE>.
In MySQL, physically, a schema is synonymous with a database. You can substitute the keyword
SCHEMAinstead ofDATABASEin MySQL SQL syntax, for example usingCREATE SCHEMAinstead ofCREATE DATABASE.
其他一些数据库产品有所区别.例如,在 Oracle 数据库产品中,模式仅代表数据库的一部分:单个用户拥有的表和其他对象.
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中架构/数据库之间的区别
基础教程推荐
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- 无法解决整理冲突 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
