ThinkPHP谁帮我看一下SQL查询语句哪里错了? 20
$db_category=M('category');$rs_category=$db_category->field('*,concat(path,",",id)asp...
$db_category=M('category');
$rs_category=$db_category->field('*,concat(path,",",id) as paths,count(explode(",",path)) as deep')->order('paths')->select();
页面输出SQL语句是:SELECT *,concat(path,",",id) as paths,count(explode(",",path)) as deep FROM `db_category` ORDER BY paths
结果是:boolean false 展开
$rs_category=$db_category->field('*,concat(path,",",id) as paths,count(explode(",",path)) as deep')->order('paths')->select();
页面输出SQL语句是:SELECT *,concat(path,",",id) as paths,count(explode(",",path)) as deep FROM `db_category` ORDER BY paths
结果是:boolean false 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询