html_and_vue/查询.sql

7 lines
314 B
MySQL
Raw Normal View History

2023-09-12 09:40:35 +00:00
SELECT b.M1_account_id, a.accountid as 'M2_accound_id', b.scan_time, a.first_sub_datatime as 'sub_datatime' FROM
2023-09-11 09:31:24 +00:00
(SELECT * FROM `2022_subscribe`
WHERE first_sub_datatime BETWEEN '2022-11-14' AND '2022-12-26') a
RIGHT JOIN
(SELECT * FROM `2022_mgm`
WHERE act_name = '世界杯-转介') b
on a.openid = b.M2_openId