Upgrade to Pro — share decks privately, control downloads, hide ads and more …

目指せ3つ星インデックス #yokohama_north

kariyayo
November 14, 2015

目指せ3つ星インデックス #yokohama_north

MySQLのインデックスのお話

kariyayo

November 14, 2015
Tweet

More Decks by kariyayo

Other Decks in Programming

Transcript

  1. # ໦ • # ໦Ͱ͸࣮ࡍʹඞཁͳ஋͸શ ͯ༿ϊʔυʹ֨ೲ͞ΕΔ • ϧʔτͱ༿ͷؒͷϊʔυ͸ࢠϊʔ υ΁ͷϙΠϯλΛ࣋ͭ •

    શͯͷ༿ϊʔυ͸ϧʔτ͔Β౳ ڑ཭ʹ͋Δ • *OOP%#Ͱ͸ɺ༿ϊʔυʹओΩʔ ͷ஋Λ֨ೲ͢Δʢޙड़ʣ ը૾Ҿ༻ݩ8JLJQFEJB IUUQTKBXJLJQFEJBPSHXJLJ## &$"
  2. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ 6TFSTςʔϒϧ LFZ OBNF BEESFTT BHF
  3. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' AND address = 'Tokyo' AND age = 33 SELECT * FROM users ORDER BY name, address, age
  4. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' AND address = 'Tokyo' AND age = 33 SELECT * FROM users ORDER BY name, address, age ΠϯσοΫεͷશͯͷྻΛࢦఆ͍ͯ͠ΔͷͰޮ͘
  5. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Morita' AND address = 'Okayama' SELECT * FROM users ORDER BY name, address
  6. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Morita' AND address = 'Okayama' SELECT * FROM users ORDER BY name, address ΠϯσοΫεͷࠨ୺͔Βͷྻ͕ࢦఆ͞Ε͍ͯΔͷͰޮ͘
  7. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE address = 'Okayama' AND age = 58
  8. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE address = 'Okayama' AND age = 58 ΠϯσοΫεͷࠨ୺ͷྻ͕ࢦఆ͞Εͯͳ͍ͷͰޮ͔ͳ͍
  9. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Morita' AND age = 58
  10. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Morita' AND age = 58 ΠϯσοΫεͷྻ͕εΩοϓ͞Ε͍ͯΔͨΊࠨ୺ͷྻͷΈ͕ޮ͘ .PSJUB͞ΜશͯͷߦΛಡΈࠐΉඞཁ͕͋Δ
  11. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name LIKE 'M%' SELECT * FROM users WHERE name > 'Endo'
  12. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name LIKE 'M%' SELECT * FROM users WHERE name > 'Endo' ൣғͷݕࡧͰ΋ΠϯσοΫε͸ޮ͘
  13. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' AND address like 'T%'
  14. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' AND address like 'T%' ͋Δྻͷ׬શҰகͱผͷྻͷൣғݕࡧͰ΋ޮ͘
  15. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Morita' AND address LIKE 'O%' AND age = 58
  16. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Morita' AND address LIKE 'O%' AND age = 58 ൣғݕࡧͰ࢖ΘΕͨྻΑΓӈଆͷྻ͸ޮ͔ͳ͍ 0`Ͱ࢝·ΔॅॴʹॅΉ`.PSJUB`͞ΜͷߦΛશͯऔಘ͢Δඞཁ͕͋Δ
  17. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Morita' AND address IN ('Okinawa', 'Osaka') AND age = 58
  18. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Morita' AND address IN ('Okinawa', 'Osaka') AND age = 58 -*,&Λ*/ʹॻ͖௚͢͜ͱ͕Ͱ͖Ε͹ޮ͘
  19. ΫϥελԽΠϯσο Ϋε • ΫϥελԽΠϯσοΫε͸ɺΠ ϯσοΫεͷछྨͷ໊લͰ͸ͳ ͍ • ༿ϊʔυͷ஋ʹɺߦࣗମ͕֨ೲ ͞Ε͍ͯΔΠϯσοΫεͷ͜ͱ •

    *OOP%#͸ओΩʔͰΫϥελԽ ΠϯσοΫεΛͭ͘Δ • ओΩʔ͕ྡͷߦ͸ɺσΟεΫ্ ͰฒΜͰ͍ΔՄೳੑ͕ߴ͍ ߦ ߦ ߦ ߦ
  20. • 4&-&$5 '30.UBCMF8)&3&DPM"/%DPM • ओΩʔ͕DPMɺDPͷηΧϯμϦΠϯσοΫε͕͋Δ৔߹ɺηΧϯμ ϦΠϯσοΫεΛ࢖͍ɺDPMΛຬͨ͢ϦʔϑΛऔಘ͢Δ • ͜ͷ࣌ɺDPM͸ॱ൪ʹฒΜͰ͍ΔͨΊɺඞཁͳϦʔϑ͕ಉҰϖʔδ಺ʹ ͋ΔՄೳੑ͕ߴ͘ɺಡΉϖʔδ਺͕ݮΓɺ*0͸ͦ͜·Ͱ૿͑ͳ͍ʢՄ ೳੑ͕ߴ͍ʣ

    • ࣍ʹɺηΧϯμϦΠϯσοΫε͔Βऔಘͨ͠Ϧʔϑ͔ΒಘΒΕΔओΩʔ Λ࢖ͬͯɺΫϥελԽΠϯσοΫε͔ΒߦΛಡΈࠐΉ • ߦ͸ओΩʔͷॱ൪ͰฒΜͰ͍Δͷ͕ɺηΧϯμϦΠϯσοΫε͔Βऔ ಘͨ͠ओΩʔ͕ॱ൪ʹฒΜͰ͍Δͱ͸ݶΒͳ͍ͨΊɺෳ਺ͷϖʔδΛ ಡΉඞཁ͕͋ΔϥϯμϜ*0 • ηΧϯμϦΠϯσοΫεͰओΩʔ͕ߜΕͯͳ͍ͱ*0͕ଟ͍ʂʢߦ਺ ͕গͳ͍৔߹͸ϑϧεΩϟϯͷํ͕଎͍Մೳੑ͋Γʣ
  21. • 'JMFTPSUΛڐ༰͠ͳ͍ͱ͢ΔͱɺΫΤϦͱΠϯσοΫεͷઃܭ੍͕ݶ͞ ΕΔ • ͭͷΠϯσοΫεͰ8)&3&۟ͱ03%&3#:۟ͰඞཁͳྻΛΧόʔ͢ Δඞཁ͕͋Δ • 8)&3&۟Λ༏ઌ͢Δ͔ɺ03%&3#:۟Λ༏ઌ͢Δ͔ɺσʔλͱΫΤϦ ͷಛੑΛݟͯΑ͘ݕ౼͢Δඞཁ͕͋Δ ˞8)&3&۟Ͱඞཁͳߦ͕ߦͱ͔ʹߜΓࠐ·ΕΔͷͰ͋Ε͹ɺߦ

    Λऔಘ͔ͯ͠Βιʔτͯ͠΋໰୊ͳ͍ ˞ߦΛऔಘ͔ͯ͠Β8)&3&۟ͷߜΓࠐΈΛ͢Δ৔߹ɺ&YQMBJOͷ&YUSB ྻʹ6TJOHXIFSFͱදࣔ͞ΕΔ • 8IFSFૂ͍ͷΩʔɺPSEFSCZૂ͍ͷΩʔ IUUQXXXTMJEFTIBSFOFUZPLVXIFSFPSEFSCZ
  22. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ 6TFSTςʔϒϧ LFZ OBNF BEESFTT BHF
  23. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' ORDER BY address
  24. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' ORDER BY address ΠϯσοΫεͷྻΛࠨ͔Βॱ൪ʹࢦఆ͍ͯ͠ΔͷͰޮ͘
  25. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' ORDER BY address, age
  26. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' ORDER BY address, age ΠϯσοΫεͷྻΛࠨ͔Βॱ൪ʹࢦఆ͍ͯ͠ΔͷͰޮ͘
  27. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users ORDER BY address
  28. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users ORDER BY address ΠϯσοΫεͷྻΛεΩοϓ͍ͯ͠ΔͷͰޮ͔ͳ͍
  29. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' ORDER BY address DESC
  30. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' ORDER BY address DESC ΠϯσοΫεͷྻ͸શͯঢॱͳͷͰޮ͘ͷ͸OBNFͰͷߜΓࠐΈ·Ͱ
  31. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' ORDER BY age
  32. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' ORDER BY age ΠϯσοΫεͷྻΛεΩοϓ͍ͯ͠ΔͷͰޮ͘ͷ͸OBNFͰͷߜΓࠐΈ·Ͱ
  33. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' address LIKE ’T%' ORDER BY address, age
  34. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' address LIKE ’T%' ORDER BY address, age ൣғݕࡧͰ࢖ͬͨྻΑΓޙΖͷྻ͸࢖͑ͳ͍ͷͰޮ͘ͷ͸BEESFTTͰͷߜΓࠐΈ·Ͱ
  35. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' address IN ('Tokyo', 'Tokushima') ORDER BY address, age
  36. Sato Aomori 32 Nakamura Kyoto 39 Aoki Hokkaido 19 Baba

    Ishikawa 65 Endo Chiba 24 Endo Chiba 24 Endo Tokyo 33 Dobashi Nigata 30 Morita Okayama 58 Yamada Kanagawa 39 Nakamura Kyoto 39 Okada Shizuoka 15 ɾɾɾ ɾɾɾ ɾɾɾ ɾɾɾ SELECT * FROM users WHERE name = 'Endo' address IN ('Tokyo', 'Tokushima') ORDER BY address, age ιʔτͷ৔߹͸*/۟Ͱ΋มΘΒͣɺޮ͘ͷ͸BEESFTTͰͷߜΓࠐΈ·Ͱ
  37. • ΧόϦϯάΠϯσοΫεΛ࢖͑͹ߦΛऔಘ͢Δඞཁ͕ͳ͘ͳΓɺओΩʔ ͷΠϯσοΫεΛ୳ࡧ͢Δඞཁ΋ͳ͘ͳΔ • ϥϯμϜ*0͕ͳ͘ͳΔʂ ओΩʔ ओΩʔ ओΩʔ ओΩʔ ηΧϯμϦ

    ΠϯσοΫε ߦ ߦ ߦ ߦ ओΩʔͷ ΠϯσοΫε ʢΫϥελԽʣ ηΧϯμϦΠϯσο Ϋε͚ͩͰ׬݁ ओΩʔͷΠϯσοΫ εΛݟΔඞཁͳ͠
  38. ஗Ԇ݁߹ • ΠϯσοΫεʹؚ·Ε͍ͯͳ͍ྻ͕͋ΔͨΊߦΛऔಘ͢Δඞཁ͕͋Δ • ߦΛऔಘ͔ͯ͠Β0''4&5 -*.*5ʹΑ͍ͬͯΒͳ͍ߦ͕ࣺͯΒΕΔ SELECT name, introduction FROM

    users ORDER BY name, address LIMIT 100, 10 SELECT name, introduction FROM users t1 INNER JOIN ( SELECT id FROM users ORDER BY name, address LIMIT 100, 10 ) t2 ON t1.id = t2.id • ΧόϦϯάΠϯσοΫεͰ݅ʹߜΓࠐΜͰ͔ΒߦΛऔಘ͢Δ • ߦΛऔಘ͢Δલʹඞཁͳߦ਺Λ0''4&5 -*.*5ͰߜΓࠐΊΔ