使用PHP访问MySQL字段的注释 [英] Access MySQL field's Comments with PHP

查看:240
本文介绍了使用PHP访问MySQL字段的注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在MySQL表中创建字段时,需要填写注释"框.如何使用PHP访问注释"框中的数据?

When you are creating a field in a MySQL table, there's a 'Comments' box to fill out. How can I access the data in that 'Comments' box with PHP?

推荐答案

information_schema周围拨动.

SELECT table_comment
FROM information_schema.tables
WHERE table_schema = 'myschema' AND table_name = 'mytable'

这篇关于使用PHP访问MySQL字段的注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆