Add transaction and commit statements to SQL scripts
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
START TRANSACTION;
|
||||
INSERT INTO
|
||||
`contrainte` (`idcontrainte`, `couleur`)
|
||||
SELECT DISTINCT
|
||||
@@ -265,7 +266,7 @@ GROUP BY
|
||||
|
||||
SET @row_number = 0;
|
||||
|
||||
INSERT INTO `comprend`(`idpartie`, `num_tour`, `idlancer`) SELECT `id_partie`, `num_tour`, @row_number:=@row_number+1 AS idlancers
|
||||
INSERT INTO `comprend`(`idpartie`, `numTour`, `idlancer`) SELECT `id_partie`, `numTour`, @row_number:=@row_number+1 AS idlancers
|
||||
FROM donnees_fournies.instances3 t;
|
||||
|
||||
SET @row_number = 0;
|
||||
@@ -281,4 +282,5 @@ UNION ALL SELECT @idlancer:=@idlancer+1, CONCAT('2;', de2) FROM `donnees_fournie
|
||||
UNION ALL SELECT @idlancer:=@idlancer+1, CONCAT('3;', de3) FROM `donnees_fournies`.`instances3`
|
||||
UNION ALL SELECT @idlancer:=@idlancer+1, CONCAT('4;', de4) FROM `donnees_fournies`.`instances3`
|
||||
UNION ALL SELECT @idlancer:=@idlancer+1, CONCAT('5;', de5) FROM `donnees_fournies`.`instances3`
|
||||
UNION ALL SELECT @idlancer:=@idlancer+1, CONCAT('6;', de6) FROM `donnees_fournies`.`instances3`;
|
||||
UNION ALL SELECT @idlancer:=@idlancer+1, CONCAT('6;', de6) FROM `donnees_fournies`.`instances3`;
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user