Home  >  Article  >  Backend Development  >  php mysql 怎么获取表注释

php mysql 怎么获取表注释

WBOY
WBOYOriginal
2016-06-13 13:15:311223browse

php mysql 如何获取表注释
$sql="show create table about";
$query=mysql_query($sql);

请问下面要怎么写才能获取表注释呢
谢谢。

------解决方案--------------------
字段?

骄傲的青蛙有答案


SELECT COLUMN_NAME, DATA_TYPE, COLUMN_COMMENT
FROM information_schema.columns
WHERE table_name = ?

------解决方案--------------------
表注释还是字段注释?
表注释可以用

SQL code
show table status like 表名
<br><font color="#e78608">------解决方案--------------------</font><br>
SQL code
show table status like '表名'
<br><font color="#e78608">------解决方案--------------------</font><br>原来兄台还在呼吸大自然的空气...<br><br>
探讨

SQL code
show table status like '表名'

------解决方案--------------------
探讨

原来兄台还在呼吸大自然的空气...

引用:

SQL code
show table status like '表名'
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn