代码:
String select="select * ";
DSqlKit.init(" from t where a= ? ", pid);
DSqlKit.append(" order by b asc,c asc ");
Page<Record> page = Db.paginate(pageIndex, pageSize,select,
DSqlKit.getSql(),DSqlKit.getParamList());
报错:
ORDER BY 子句中的列 "t.b" 无效,因为该列没有包含在聚合函数或 GROUP BY 子句中。
如何破?