MySQL query using 'in' operator: why different results w/ quotes?
问题 I've tracked down a weird MySQL problem to the two different ways I was performing a query. When you boil everything down, this way returns more results: SELECT DISTINCT <stuff> FROM <tables> WHERE promo_detail_store_id in (8214, 8217, 4952, 8194, ...) This change to the WHERE clause produces a subset of those results: WHERE promo_detail_store_id in ('8214, 8217, 4952, 8194, ...') (promo_detail_store_id is defined as a BIGINT in a MyISAM table.) Originally that list of store_ids was much