自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

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

數(shù)據(jù)庫 MySQL
查看MySQL數(shù)據(jù)庫操作多很多種,下文就為您整理了常用的查看MySQL數(shù)據(jù)庫的命令,希望對您學(xué)習(xí)MySQL數(shù)據(jù)庫方面能夠有所幫助。

查看MySQL數(shù)據(jù)庫是我們最常用的操作之一,下面對常用的查看MySQL數(shù)據(jù)庫的命令作了詳盡的闡述,如果您對查看MySQL數(shù)據(jù)庫方面感興趣的話,不妨一看。

進(jìn)入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='表名';

查看警告:
Rows matched: 1  Changed: 0  Warnings: 1
mysql> show warnings;
+---------+------+-------------------------------------------+
| Level   | Code | Message                                   |
+---------+------+-------------------------------------------+
| Warning | 1265 | Data truncated for column 'name' at row 3 |
+---------+------+-------------------------------------------+
1 row in set
 

 

 

【編輯推薦】

顯示MYSQL表信息的方法

三種常用的MySQL建表語句

實例講解MySQL連接查詢

教您如何實現(xiàn)MySQL多表插入

MySQL修復(fù)表的兩個小技巧

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

2010-10-15 16:20:59

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

2010-10-12 12:00:42

MySQL連接

2019-10-21 13:52:14

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

2010-05-28 11:41:46

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

2011-07-18 15:59:17

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

2011-03-31 16:09:56

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

2010-05-11 11:53:57

Mysql show命

2011-03-03 16:10:04

Mysql數(shù)據(jù)庫備份還原

2010-10-12 17:23:40

MySQL命令行

2010-05-24 09:44:30

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

2017-10-20 13:59:08

2011-03-08 08:49:55

MySQL優(yōu)化單機(jī)

2011-03-03 15:54:27

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

2011-05-13 09:42:21

2010-10-12 16:55:50

MYSQL命令行

2010-10-28 14:18:01

oracle數(shù)據(jù)庫版本

2011-02-22 14:26:04

ProFTPD

2011-02-22 14:26:04

ProFTPD

2010-06-07 10:59:13

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

2009-05-08 09:56:37

MaxDBMySQL數(shù)據(jù)庫管理
點(diǎn)贊
收藏

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