创建表:
CREATE TABLE ashui(
aid INT AUTO_INCREMENT PRIMARY KEY,
aname VARCHAR(20)
);
设置回滚点:START TRANSACTION;
给表插入数据:INSERT INTO ashui(aname)VALUE(‘sdag‘);
回滚事物:ROLLBACK;
时间: 2024-11-15 06:11:14
创建表:
CREATE TABLE ashui(
aid INT AUTO_INCREMENT PRIMARY KEY,
aname VARCHAR(20)
);
设置回滚点:START TRANSACTION;
给表插入数据:INSERT INTO ashui(aname)VALUE(‘sdag‘);
回滚事物:ROLLBACK;