提交 f2dca785 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Add test for REPLACE from SELECT

上级 b8e6dc27
......@@ -28,5 +28,17 @@ REPLACE INTO TABLE_WORD(WORD_ID, WORD) VALUES (1, 'REPLACED');
SELECT WORD FROM TABLE_WORD where WORD_ID = 1;
>> REPLACED
REPLACE INTO TABLE_WORD(WORD) SELECT 'dddddddddd';
> update count: 1
SELECT WORD FROM TABLE_WORD where WORD_ID = 4;
>> dddddddddd
REPLACE INTO TABLE_WORD(WORD_ID, WORD) SELECT 1, 'REPLACED2';
> update count: 2
SELECT WORD FROM TABLE_WORD where WORD_ID = 1;
>> REPLACED2
DROP TABLE TABLE_WORD;
> ok
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论