MYSQL Assignments Final PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

MYSQL DATABASE TRANSACTION ASSIGNMENT – 3

question : given below the mitem table.

icode iname iprice


101 chair 1500
102 dining table 24000

what will be the output


select * from mitem;
set autocommit=0;
insert into mitem values(103,’coffee table’,340);
select * from mitem;
rollback;
select * from mitem;
start transaction;
update mitem set iprice=iprice+200;
savepoint s1;
update mitem set iprice=iprice+400;
select * from mitem;
rollback to s1;
select * from mitem;

FIRST FLOOR, OPPOSITE BANK OF BARODA,


AJMER ROAD, KISHANGARH (RAJ) 305801 CALL : +91 98291-71122
EMAIL : infotechcomputer@gmail.com | WEBSITE : www.infotechcomputer.in

You might also like