improved rename:DELETE test
This commit is contained in:
parent
1bd93bda70
commit
f33bebb527
@ -16,8 +16,10 @@ create event gh_ost_test
|
|||||||
enable
|
enable
|
||||||
do
|
do
|
||||||
begin
|
begin
|
||||||
|
insert ignore into gh_ost_test values (1, 11, 23);
|
||||||
|
insert ignore into gh_ost_test values (2, 13, 23);
|
||||||
insert into gh_ost_test values (null, 17, 23);
|
insert into gh_ost_test values (null, 17, 23);
|
||||||
set @last_insert_id := last_insert_id();
|
set @last_insert_id := last_insert_id();
|
||||||
update gh_ost_test set c1=c1+@last_insert_id, c2=c2+@last_insert_id where id = @last_insert_id order by id desc limit 1;
|
update gh_ost_test set c1=c1+@last_insert_id, c2=c2+@last_insert_id where id = @last_insert_id order by id desc limit 1;
|
||||||
delete from gh_ost_test where id <= 2 order by id asc limit 1;
|
delete from gh_ost_test where id in (1,2);
|
||||||
end ;;
|
end ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user