我的表都是innodb类型,而且已经set autocommit=0了,为什么还是没有变化;之后关闭客户端后再重新进入查询表内容却变成由于事务启动后改变的数据了,不是重启客户端就会还原的吗?
解决方案 »
- 用mysql查询登入的用户名和当前系统时间是这样写吗?Select user,getdate()
- mysql的问题 怎么合并这2句呢
- mysql保存文件路径
- 请教ms sql 数据导入到mysql 方法及工具
- mysql类型为datetime的字段默认值是当前时间吗?
- mysql 中Sql 语句怎么样使用参数??
- mysql 处理速度如何优化?
- mysql administrator不能登录但命令行登录没问题
- 关于mysql一个存储过程耗时很长的问题,求优化思路
- MySQL存储过程显示无限级分类查询,查询子级子孙级,注意是用过程不是函数
- mysql 同一张表,查重复数据。
- VS2010与Mysql数据库的一个问题!
create table trunks (
id smallint unsigned not null auto_increment,
owner smallint unsigned not null references participants (id),
name varchar(25) not null,
price decimal(5 , 2 ) not null,
description mediumtext not null,
primary key (id)
) engine=innodb;participants表:
create table trunks (
id smallint unsigned not null auto_increment,
name varchar(35) not null,
email varchar(45) not null,
cash decimal(5,2) not null,
primary key (id)
) engine=innodb;事务过程:
start transaction;update participants set cash=cash-12.99 where id=1;
update participants set cash=cash+12.99 where id=2;
update trunks set owner=1 where name='Abacus' and id=1;rollback;select * from participants;
select * from trunks;