From 0f9dbca9ed7377080cd0174b23365937b753cccf Mon Sep 17 00:00:00 2001 From: zong Date: Mon, 26 Sep 2022 08:30:09 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9replace=20into=E7=89=B9?= =?UTF-8?q?=E6=80=A7=E7=9A=84=E5=8A=9F=E8=83=BD=E6=8F=8F=E8=BF=B0=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zong --- doc/src/sgml/ref/replace.sgmlin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/src/sgml/ref/replace.sgmlin b/doc/src/sgml/ref/replace.sgmlin index c2a0350c9..96df31351 100644 --- a/doc/src/sgml/ref/replace.sgmlin +++ b/doc/src/sgml/ref/replace.sgmlin @@ -23,7 +23,7 @@ REPLACE [LOW_PRIORITY | DELAYED] [INTO] tbl_name [(col_name,...)] SELECT... -REPLACE works exactly like INSERT, except that if an old row in the table has the same value as a new row for a PRIMARY KEY or a UNIQUE index, the old row is deleted before the new row is inserted. +REPLACE delete the old rows when the new row conflict with the old row which contains PRIMARY KEY or a UNIQUE index, and then insert the new row.