SQL的极端新手在这里。有没有更简单的方法来做到这一点?
SELECT event_type, flow, userid
FROM checkpoints_esc
WHERE date='2013-05-14' AND event_type='flow_started' AND flow='1921474754'
OR flow='3326882819' OR flow='1916289507' OR flow='2121958995'
OR flow='2142167604'
LIMIT 1000;
希望 SQL 有类似的数组列表:
MyFlows = @[1921474754, 3326882819, 1916289507, 2121958995, 2142167604]
WHERE date='2013-05-14' AND event_type='flow_started' AND @MyFlows