oschina-过年动弹抽奖sql
程序员文章站
2023-12-29 23:06:04
...
老大的sql很精练。 无 SELECT DISTINCT(u.id) FROM osc_opt_logs l, osc_users u WHERE l.user=u.id AND l.obj_type=100 AND u.role 100 AND DATE(l.create_time) = '2013-2-xx' ORDER BY RAND() LIMIT 2
老大的sql很精练。SELECT DISTINCT(u.id) FROM osc_opt_logs l, osc_users u WHERE l.user=u.id AND l.obj_type=100 AND u.role