假设我有一个下面给出的范围
400001 - 400104
400601 - 400614
400701 - 400710
401101
401104
401105
401107
401201
401202
401203
401207
401209
401301
401303
421001 - 421005
421201
421202
421203
421204
421301
421304
421306
而且我必须在下面给定的范围内找到数据,而不是告诉我最简单的方法。我在函数中使用并解决它,但如果有更多的范围会变得更加乏味
IN
(400001, 400002, 400003, 400004, 400005, 400006, 400007, 400008,
400009, 400010, 400011, 400012, 400013, 400014, 400015, 400016,
400017, 400018, 400019, 400020, 400021, 400022, 400023, 400024,
400025, 400026, 400027, 400028, 400029, 400030, 400031, 400032,
400033, 400034, 400035, 400036, 400037, 400038, 400039, 400040,
400041, 400042, 400043, 400044, 400045, 400046, 400047, 400048,
400049, 400050, 400051, 400052, 400053, 400054, 400055, 400056,
400057, 400058, 400059, 400060, 400061, 400062, 400063, 400064,
400065, 400066, 400067, 400068, 400069, 400070, 400071, 400072,
400073, 400074, 400075, 400076, 400077, 400078, 400079, 400080,
400081, 400082, 400083, 400084, 400085, 400086, 400087, 400088,
400089, 400090, 400091, 400092, 400093, 400094, 400095, 400096,
400097, 400098, 400099, 400100, 400101, 400102, 400103, 400104,
400601, 400602, 400603, 400604, 400605, 400606, 400607, 400608,
400609, 400610, 400611, 400612, 400613, 400614, 400701, 400702,
400703, 400704, 400705, 400706, 400707, 400708, 400709, 400710,
401101, 401104, 401105, 401107, 401201, 401202, 401203, 401207,
401209, 401301, 401303, 421001, 421002, 421003, 421004, 421005,
421201, 421202, 421203, 421204, 421301, 421304, 421306)