偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

查看MySQL數(shù)據(jù)庫表的命令介紹

數(shù)據(jù)庫 MySQL
下面為您介紹的命令用于查看MySQL數(shù)據(jù)庫中的表結(jié)構(gòu),該命令極具實用價值,如果您對MySQL數(shù)據(jù)庫方面感興趣的話,不妨一看。

如果需要查看MySQL數(shù)據(jù)庫中都有哪些MySQL數(shù)據(jù)庫表,應(yīng)該如何實現(xiàn)呢?下面就為您介紹查看MySQL數(shù)據(jù)庫表的命令,供您參考。

進入MySQL Command line client下
查看當(dāng)前使用的數(shù)據(jù)庫:
mysql>select database();
mysql>status;
mysql>show tables;

mysql>show databases;//可以查看有哪些數(shù)據(jù)庫,返回數(shù)據(jù)庫名(databaseName)

mysql>use databaseName;  //更換當(dāng)前使用的數(shù)據(jù)庫

mysql>show tables; //返回當(dāng)前數(shù)據(jù)庫下的所有表的名稱
或者也可以直接用以下命令
mysql>show tables from databaseName;//databaseName可以用show databases得來

mysql查看表結(jié)構(gòu)命令,如下:
desc 表名;
show columns from 表名;
或者
describe 表名;
show create table 表名;
或者
use information_schema
select * from columns where table_name='表名';

查看警告:

  1. Rows matched: 1  Changed: 0  Warnings: 1  
  2. mysql> show warnings;  
  3. +---------+------+-------------------------------------------+  
  4. | Level   | Code | Message                                   |  
  5. +---------+------+-------------------------------------------+  
  6. | Warning | 1265 | Data truncated for column 'name' at row 3 |  
  7. +---------+------+-------------------------------------------+  
  8. 1 row in set  

以上就是查看MySQL數(shù)據(jù)庫表的命令介紹。

 

 

【編輯推薦】

MySQL服務(wù)器的內(nèi)部鎖定

Mysql Merge表的優(yōu)點

隨機獲取Mysql數(shù)據(jù)的方法

根據(jù)Mysql表備份

MySQL Show語句用法介紹

責(zé)任編輯:段燃 來源: 互聯(lián)網(wǎng)
相關(guān)推薦

2010-11-23 11:04:25

查看MySQL數(shù)據(jù)庫

2011-07-18 15:59:17

MySQL數(shù)據(jù)庫

2010-10-13 11:54:00

MySQL數(shù)據(jù)庫表

2010-06-10 13:42:51

MySQL數(shù)據(jù)庫

2011-03-22 14:49:35

Oracle數(shù)據(jù)庫重定義表

2011-02-28 15:45:12

2010-11-24 13:18:05

MySQL表管理

2010-10-15 10:29:25

Mysql表結(jié)構(gòu)

2023-10-26 07:05:58

MySQL數(shù)據(jù)庫

2019-09-17 07:31:53

MySQL表容量數(shù)據(jù)庫

2010-10-12 12:00:42

MySQL連接

2010-06-11 16:51:44

MySQL數(shù)據(jù)庫

2018-05-14 16:14:56

數(shù)據(jù)庫MySQL分表與分區(qū)

2009-02-02 13:16:23

修復(fù)數(shù)據(jù)表MySQL

2011-05-18 13:16:21

MySQL數(shù)據(jù)庫鎖定

2010-08-27 11:03:44

DB2數(shù)據(jù)庫性能調(diào)整

2019-10-21 13:52:14

MySQL數(shù)據(jù)庫命令

2010-05-28 11:41:46

MySQL數(shù)據(jù)庫備份

2011-08-02 18:38:19

MySQLINI文件

2010-04-23 11:32:22

Oracle數(shù)據(jù)庫
點贊
收藏

51CTO技術(shù)棧公眾號