MySql中查詢表中的列名_MySQL
來源:懂視網(wǎng)
責編:小采
時間:2020-11-09 20:07:17
MySql中查詢表中的列名_MySQL
MySql中查詢表中的列名_MySQL:例如我的數(shù)據(jù)庫名為“example”,使用 USE example; 確定使用example數(shù)據(jù)庫。使用 show tables; 顯示數(shù)據(jù)庫中的所有表。使用 DESC persons; 顯示表persons中的列名。或者使用 DESCRIBE person
導讀MySql中查詢表中的列名_MySQL:例如我的數(shù)據(jù)庫名為“example”,使用 USE example; 確定使用example數(shù)據(jù)庫。使用 show tables; 顯示數(shù)據(jù)庫中的所有表。使用 DESC persons; 顯示表persons中的列名。或者使用 DESCRIBE person
例如我的數(shù)據(jù)庫名為“example”,使用
USE example;
![](http://img.bitscn.com/upimg/allimg/c150910/1441W343W3440-15147.jpg)
確定使用example數(shù)據(jù)庫。使用
show tables;
![](http://img.bitscn.com/upimg/allimg/c150910/1441W343W9E0-21502.jpg)
顯示數(shù)據(jù)庫中的所有表。使用
DESC persons;
![](http://img.bitscn.com/upimg/allimg/c150910/1441W34391250-3HE.jpg)
顯示表persons中的列名。或者使用
DESCRIBE persons;
![](http://img.bitscn.com/upimg/allimg/c150910/1441W343932Q0-43246.jpg)
或者使用
SHOW columns FROM persons;
聲明:本網(wǎng)頁內容旨在傳播知識,若有侵權等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
本文如未解决您的问题请添加抖音号:51dongshi(抖音搜索懂视),直接咨询即可。
MySql中查詢表中的列名_MySQL
MySql中查詢表中的列名_MySQL:例如我的數(shù)據(jù)庫名為“example”,使用 USE example; 確定使用example數(shù)據(jù)庫。使用 show tables; 顯示數(shù)據(jù)庫中的所有表。使用 DESC persons; 顯示表persons中的列名?;蛘呤褂? DESCRIBE person
标签:福寿螺时间:2024-09-11 09:24:02
标签:深中通道通车时间:2024-07-01 11:16:29
标签:肺炎养臭水时间:2024-06-06 10:02:27