Insertar datos
PROCEDIMIENTO DE GOTA SI EXISTE test3;
DELIMITER //
crear procedimiento test3 ()
comenzar
DECLARE i int default 12345678;
DECLARE count int default 0;
mientras recuento <1,000
hacer
inserto en `(,,,,,,,,` `Id` ConfigId`` `name` IsPreset`` type` `` Parameter` UpdateTime` `` UpdatedBy` GroupId`) t_variable`
valores (i , 294597245385311360, 0, i, 'Constante', '{\ "valor \": \ "234 \"}', '2020-02-11 19:31:44', '890852000000000050', 294849007291729024);
establecer cuenta = cuenta + 1;
establecer i = i + 1;
terminar mientras
fin //
llamar a test3 ();
Eliminar datos
PROCEDIMIENTO DE GOTA SI EXISTE test3;
DELIMITER //
crear procedimiento test3 ()
comenzar
DECLARE i int default 123457;
DECLARE count int default 0;
mientras recuento <1,000
hacer
de eliminación de t_variable donde ConfigId = 294597245385311360 y Id = i;
establecer cuenta = cuenta + 1;
establecer i = i + 1;
terminar mientras
fin //
llamar a test3 ();