MySQL中的模式/数据库之间的区别 [英] Difference Between Schema / Database in MySQL

查看:310
本文介绍了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 创建数据库在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 SCHEMA instead of DATABASE in MySQL SQL syntax, for example using CREATE SCHEMA instead of CREATE 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中的模式/数据库之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆