摘要:
SELECT * as total FROM ( (SELECT live_msg.id AS oid from stat_user_liver_refer_stock,live_msg WHERE l_id not in ($liveLids) and live_msg.rec_time>DATE 阅读全文
摘要:
现有:user 用户表 user_msg 用户文章表 需求:批量取一定时间范围内注册的各个用户发表的前3条文章 select * from user_msg a where a.u_id in (SELECT id FROM `user` where rec_time>="2021-11-07") 阅读全文
摘要:
1.单独需要这样查,循环查的话效率很慢。 select profit_rate_w as w_r,profit_rate_t as t_r ,profit_rate_m as m_r,profit_rate_d as d_r from replica_profit where u_id=36273 阅读全文