To determine whether the new row already exists in the table, MySQL uses PRIMARY KEY or UNIQUE KEY index. If the table does not have one of those indexes, the REPLACE statement is equivalent to the INSERT statement.
เพื่อตรวจสอบว่าแถวใหม่ที่มีอยู่แล้วในตาราง MySQL ใช้คีย์หลักคีย์หรือดัชนีที่ไม่ซ้ำกัน ถ้าโต๊ะไม่ได้หนึ่งของดัชนีนั้น แทนที่ข้อความจะเทียบเท่ากับคำสั่งแทรก