#1 luoxi123654
提示错误信息:Mixing of GROUP columns(MIN(),MAX(),COUNT(),...) with no GROUP columns is illegal if there is no GROUPBY clause 好像是说没有分组,关联只这么写的
'goods' => array(
'type' => 'hasmany', // 一对多关联,一个用户可能属于多个用户组
'map' => 'goods_num', // 关联的标识
'mapkey' => 'id', // 关联的字段
'fclass' => 'yt_goods_static', // 对应表的数据类是m_group
'fkey' => 'seller_id', // 对应表的关联字段
'field' => 'goods_id,count(goods_id) AS goods_num,now_price', // 关联结果的限定字段
'enabled' => true
),
应该是红色字体那的问题,不知这么写对不对,但在本机上测试没问题,传到服务器上就出现错误提示。
求解!!!
2011-11-10 21:11:46