· 6 years ago · May 01, 2019, 12:38 AM
1
2"CREATE TABLE IF NOT EXISTS `accesorios` (`ID` int(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY)");
3for(new a; a < 10; a++)
4{
5format(string, stringsize, "ALTER TABLE accesorios ADD `Modelo_%d` int(7) NOT NULL,`Parte_%d` int(2) NOT NULL,`PosX_%d` float NOT NULL,`PosY_%d` float NOT NULL,`PosZ_%d` float NOT NULL,`RotX_%d` float NOT NULL,`RotY_%d` float NOT NULL,`RotZ_%d` float NOT NULL,`EscalaX_%d` float NOT NULL,`EscalaY_%d` float NOT NULL,`EscalaZ_%d` float NOT NULL, `Colocado_%d` int(2) NOT NULL)", %d);
6query string de arriba
7}