开辟者大年夜赛路演 | 12月16日,技巧立异,北京不见不散
媒介
今天介绍一些MySQL常用的实用敕令,都是一些比较简单的敕令。已经知道的同伙,就当是巩固吧,不知道的童鞋,可以好好在本身的机械上,演习下。
0. 显示数据库
敕令:show databases。
感化:列出当前数据库办事器中所有的数据库。
- mysql> show tables;
- +--------------------+
- | Tables_in_andyqian |
- +--------------------+
- | hit_counter |
- | t_base_01 |
- | t_base_data |
- | t_base_user |
- +--------------------+
- 4 rows in set (0.00 sec)
例子:
- mysql> show full columns from t_base_data\G;
- *************************** 1. row ***************************
- Field: id
- Type: bigint(20)
- Collation: NULL
- Null: NO
- Key: PRI
- Default: NULL
- Extra: auto_increment
- Privileges: select,insert,update,references
- Comment:
- *************************** 2. row ***************************
- Field: content
- Type: json
- Collation: NULL
- Null: YES
- Key:
- Default:
推荐阅读
开辟者大年夜赛路演 | 12月16日,技巧立异,北京不见不散 传统上,在建立一个新的数据中间时,大年夜约35%的本>>>详细阅读
本文标题:十个非常实用的MySQL命令!
地址:http://www.17bianji.com/lsqh/39718.html
1/2 1