mysql元数据 schema_元数据和schema有什么区别 ?

PostgreSQL的文档中对于schema的描述:

There are several reasons why one might want to use schemas:To allow many users to use one database without interfering with each other.

To organize database objects into logical groups to make them more manageable.

Third-party applications can be put into separate schemas so they do not collide with the names of other objects.

Schemas are analogous to directories at the operating system level, except that schemas cannot be nested.

主要说了下应用场景,直接看最后一句就行了:就跟系统里的文件夹一样,用来组织复杂结构的(但不能多次嵌套)

作为一个初学者,把所有的“表”都放在“桌面”上最醒目的位置(数据库“根目录”),显然没有任何毛病,别人也不会说你什么

至于catalog:

The system catalogs are the place where a relational database management system stores schema metadata, such as information about tables and columns, and internal bookkeeping information.

就是个总表嘛,什么tables,columns之类信息,包括前面说的schema全在这里,sqlite里叫sqlite_master,如果说数据库是用来存储数据的,catalog就是用来存放数据库的

还有,不要用mysql举例!不要用过时的技术解释现今的问题

我一学交互设计的竟然跑来回答后端的问题,这个世界真的太糟糕了(我太开心了)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值