case 1: commitshow variables like 'autocommit';Variable_name Valueautocommit ONdrop table if exists t1;create table t1 (c1 int primary key, c2 varchar(1024));set autocommit=0;insert into t1 values (1, '中国');select * from t1 where c1 = 1 for update;c1 c21 中国commit;set autocommit=1;select * from t1;c1 c21 中国