$field = M('GoodsAttr')->getDbFields();
得到结果:
[field] => Array
(
[0] => goods_attr_id
[1] => goods_id
[2] => attr_id
[3] => attr_value
[4] => attr_price
)
博客列表 >tp3.2通过getDbFields()方法获取表中的所有字段
$field = M('GoodsAttr')->getDbFields();
得到结果:
[field] => Array
(
[0] => goods_attr_id
[1] => goods_id
[2] => attr_id
[3] => attr_value
[4] => attr_price
)