您的位置:宽带测速网 > 帝国cms > 帝国cms 自定义列表多表查询方法

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

2025-06-20 10:47来源:互联网 [ ]

帝国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