您的位置:首页 > 帝国cms教程

帝国cms 自定义列表多表查询方法

2021-04-14 14:57:53 帝国cms教程 69
帝国cms 自定义列表多表查询方法
统计记录:
select count(*) as total from [!db.pre!]ecms_newsunion select count(*) as total from [!db.pre!]ecms_book
查询记录:
select classid,id,titleurl,title,newstime from [!db.pre!]ecms_news union select classid,id,titleurl,title,newstime from [!db.pre!]ecms_book order by newstime desc


相关推荐