Heim  >  Artikel  >  Backend-Entwicklung  >  php mysql 怎么获取表注释

php mysql 怎么获取表注释

WBOY
WBOYOriginal
2016-06-13 13:15:311221Durchsuche

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 '表名'
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn