Ich kann keine Tabelle erstellen.Fehler # 1064 - Sie haben einen Fehler in Ihrer SQL-Syntax
Dies ist der Code:
DROP TABLE IF EXISTS `monitoreos`;
CREATE TABLE `monitoreos` (
`id` INTEGER NOT NULL AUTO_INCREMENT DEFAULT NULL,
`fecha` VARCHAR NULL DEFAULT NULL,
`id_cliente` INTEGER NULL DEFAULT NULL,
`id_vehiculo` INTEGER NULL DEFAULT NULL,
`posicion` INTEGER NULL DEFAULT NULL,
`numero_serie` INTEGER NULL DEFAULT NULL,
`numero_alterno` INTEGER NULL DEFAULT NULL,
`profundidad_inicial` VARCHAR NULL DEFAULT NULL,
`horometro_actual` VARCHAR NULL DEFAULT NULL,
`profundidad_actual_exterior` VARCHAR NULL DEFAULT NULL,
`profundidad_actual_interior` VARCHAR NULL DEFAULT NULL,
PRIMARY KEY (`id`)
);
und das ist der Fehler:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'NULL DEFAULT NULL,
`id_cliente` INTEGER NULL DEFAULT NULL,
`id_vehiculo` I' at line 3
Warum wird "id" auf "NOT NULL" und "DEFAULT NULL" gesetzt? –
'fecha VARCHAR NULL DEFAULT NULL' ist ungültig –