表用 innodb/bdb 就能支持事务了,大概是从3.23开始的!for example:begin;
insert into a ...;
insert into b ...;
commit;
程序语言一般是
set conn.autoCommit=0;
// 执行你的sql
conn.commit();
set aconn.utoCommit=1;

解决方案 »

  1.   

    我用的mysql3.23,好像建不了innodb类型的表,还有人用过吗?4.0的我装上后不会用
      

  2.   

    4.0以上吧。
    例:
    CREATE TABLE usergroup (
      id bigint NOT NULL auto_increment,
      UserName varchar(64) NOT NULL default '',
      GroupName varchar(64) NOT NULL default '',
      PRIMARY KEY  (id),
      KEY UserName (UserName(32))
    ) TYPE=InnoDB;    //支持事务然后按loveflea(coolwind)说的...
      

  3.   

    有没有4.0的下载网址?我在官方下载的mysql4.0安装后不能见表,可能权限太低,怎么和]3.2不一样啊,用过的能解释一下吗?