事务 事务处理可以用来维护数据库的完整性,保证成批的 SQL 语句要么全部执行,要么全部不 执行 示例 begin; update user set balance = balance-100 where id=1 commit;