假設我有以下我應該使用哪個函數來解決
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)
能否請你解釋一下你需要在這裏找到什麼。因爲我認爲一個簡單的'select * from tab_name where col_name = key_to_search;' – codeomnitrix 2012-07-19 04:45:43
範圍從哪裏來?他們在另一張桌子嗎? – 2012-07-19 07:17:34
亞歷克斯poole沒有範圍不是來自另一個表用戶提供了我的xls表,其中範圍給出 – 2012-07-19 08:48:37