31.1 inforMATION_SCHEMA aCcess syntax

select table_name from informatin_schema.tables 

where table_schema='information_schema';

查询表

 select column_name from information_schema.columns

where table_schema='information_schema'

and table_name='character_sets';

31.2 information_schema vers show

1.information_schema相比show的优势:

1.information_schema是标准SQL的特征,然而Showm是一个MySQL-specific语句

2.使用Information——schema,你总说能够使用SELECT语法获取元数据,无需考虑信息的类型。

3.使用select和information_schema,你可以由完整的灵活选择获取什么。

4.因为在Information_schema的信息能够获取使用灵活的select,你能够使用joins,unions和子查询

5.可以使用create table....selcet or insert ...select,这INFORMATION_SCHEMA的内容能够获取和存储到其他的表使用。

show的优势:

1.show 是一个表可以使用随MySQL的发布

2.show总是更加准确的

31.3 INFORMATION_SCHEMA的限制

show varivles

show status

show engiens

show processlist

show master status 和 show slave status提供关副本服务器的信息。



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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值