I started two transactions at same time in mysql.
After updating one transaction and commited it, in second transaction I still get the old value instead of updated value.
What is the reason for that?
I inserted a new row in to a table in T1.After commited the first transaction,Here in T2,it doesnt show the newly inserted row in T1(by select * from table command).Since i committed the first transaction shouldn't second transaction give the updated value?
T1
start transaction;
insert table1(id,name)values(5,'new name);
commit;
T2:
start transaction;(This transaction is started at the same time when t1 started.)
select * from table1;(this has done after commit the T1);
enter code here