简体   繁体   English

Zend Db Field评论

[英]Zend Db Field Comments

does anyone know if you can get individual field comments from mysql using Zend Db. 有谁知道您是否可以使用Zend Db从mysql中获取单个字段注释。 What im working on is a registration form that gets all its fields from the db table. 我正在处理的是一个注册表单,该表单从db表获取所有字段。

At the moment im using the field names to generate the labels for the form elements however it would be much better to get this data from the information_schema.columns table. 目前,我正在使用字段名称来生成表单元素的标签,但是最好从information_schema.columns表中获取此数据。

Thanks 谢谢

I don't believe you can. 我不相信你可以。 Here's the list of metadata returned from the Zend_Db_Table class - http://framework.zend.com/manual/en/zend.db.table.html#zend.db.table.metadata.caching.hardcoding . 以下是从Zend_Db_Table类返回的元数据列表-http: //framework.zend.com/manual/en/zend.db.table.html#zend.db.table.metadata.caching.hardcoding

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM