Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
MySQL INSERT で
どのSQLが優れていますか? アドバイスをいただけますか?
あなたが彼らと何をしているかによって異なります。 REPLACE INTO更新する前に読み取りを行う必要がないため、技術的には高速です (しかし、それはほとんど無関係です) INSERT INTO ... ON DUPLICATE KEY UPDATE。
REPLACE INTO
INSERT INTO ... ON DUPLICATE KEY UPDATE
これはブログでの短い議論です。