improved rename:DELETE test
This commit is contained in:
parent
f947c46e3c
commit
b380578f53
@ -20,7 +20,7 @@ begin
|
|||||||
insert ignore into gh_ost_test values (2, 13, 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=1;
|
delete from gh_ost_test where id=1;
|
||||||
delete from gh_ost_test where c1=11; -- id=2
|
delete from gh_ost_test where c1=13; -- id=2
|
||||||
end ;;
|
end ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user