首页 > 数据库技术 > 详细

Mysql命令行

时间:2020-02-02 14:52:10      阅读:78      评论:0      收藏:0      [点我收藏+]
查看数据库 show database ;
选择使用的数据库 use 数据库名  ;
查看表 show tables ;
查询表 select * from 表名
   
   
高版本mysql语句 注:mysql内置库 名:information_schema
查库 select schema_name from information_schema.schemata
查表 select table_name from information_schema.tables where table_schema=‘库名‘
查列 select column_name from information_schema.columns where table_name=‘表名‘
查字段 select 列1,列2,列3 from 库名.表名
   
   
   
   
   
   
   
   
   

技术分享图片

技术分享图片 

技术分享图片

 

 

 

 

mysql的 information_schema 库的 columns 表 详情可见 https://www.cnblogs.com/yoyo1216/p/10785898.html

 

Mysql命令行

原文:https://www.cnblogs.com/yyd-sun/p/12252075.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!