以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 复杂的查询表怎么动态加载? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=139936) |
-- 作者:houseer -- 发布时间:2019/8/26 8:58:00 -- 复杂的查询表怎么动态加载? seect * from 订单 t1 inner join (seect count(id) as count from 子表 where id > 20 group by id) t2 on t1.id = t2.fid where t1.日期 > 0 and 1=2 如果不动态加载,打开程序会慢。 如果动态加载的话, 设置loadfilter 会报错(可能因为有俩where)
|
-- 作者:有点蓝 -- 发布时间:2019/8/26 9:15:00 -- 别名前面尽量加as关键字 seect * from 订单 as t1 inner join (seect count(id) as count from 子表 where id > 20 group by id) as t2 on t1.id = t2.fid where t1.日期 > 0 and 1=2 条件里加上别名区分 datatables(查询表).loadfilter = “t1.日期 > 0”
|