mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
@ -24,7 +24,7 @@ insert into emp (emp_id, name, salary, dept_id, mgr) values
|
|||||||
(1, "bill", 1000, 10, null),
|
(1, "bill", 1000, 10, null),
|
||||||
(20, "john", 500, 10, 1),
|
(20, "john", 500, 10, 1),
|
||||||
(30, "jane", 750, 10,1 );
|
(30, "jane", 750, 10,1 );
|
||||||
select vtq_commit_ts(max(sys_trx_start + 0)) into @ts_1 from emp;
|
select vtq_commit_ts(max(sys_trx_start)) into @ts_1 from emp;
|
||||||
update emp set mgr=30 where name ="john";
|
update emp set mgr=30 where name ="john";
|
||||||
select vtq_commit_ts(sys_trx_start) into @ts_2 from emp where name="john";
|
select vtq_commit_ts(sys_trx_start) into @ts_2 from emp where name="john";
|
||||||
/* All report to 'Bill' */
|
/* All report to 'Bill' */
|
||||||
|
@ -28,7 +28,7 @@ insert into emp (emp_id, name, salary, dept_id, mgr) values
|
|||||||
(20, "john", 500, 10, 1),
|
(20, "john", 500, 10, 1),
|
||||||
(30, "jane", 750, 10,1 );
|
(30, "jane", 750, 10,1 );
|
||||||
|
|
||||||
select vtq_commit_ts(max(sys_trx_start + 0)) into @ts_1 from emp;
|
select vtq_commit_ts(max(sys_trx_start)) into @ts_1 from emp;
|
||||||
|
|
||||||
update emp set mgr=30 where name ="john";
|
update emp set mgr=30 where name ="john";
|
||||||
select vtq_commit_ts(sys_trx_start) into @ts_2 from emp where name="john";
|
select vtq_commit_ts(sys_trx_start) into @ts_2 from emp where name="john";
|
||||||
|
Reference in New Issue
Block a user