Can I use transactions with ALTER TABLE?
问题 I'm a beginner (actually complete newbie) to SQL transactions, so I may be missing something obvious. I have this SQL code, that I'm trying to run through phpMyAdmin : START TRANSACTION; INSERT INTO `users` VALUES(NULL, 'User A', 'user.a@example.com', '4', 'User A'); INSERT INTO `users` VALUES(NULL, 'User B', 'user.b@example.com', '3', 'User B'); ALTER TABLE `users` CHANGE `level` `level` TINYINT(3) UNSIGNED NOT NULL; ALTER TABLE `users` CHANGE `number` `number` INT(10) UNSIGNED NOT NULL;