創(chuàng)建表
create table user(
id int (11) primary key not null auto_increment ,
username varchar(30),
password varchar(30)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
查詢表中數(shù)據(jù)

開啟事務(wù)START TRANSACTION
插入數(shù)據(jù)
insert into user (username,password) values ('zhangsan','123');

查看數(shù)據(jù)

修改數(shù)據(jù)

查看數(shù)據(jù)

回滾事務(wù)

查看數(shù)據(jù)
