I'm trying to create tables using mysql Scripts but I'm getting errors like this:
Exception ESQLiteNativeException in module ActivityPlan.exe at 0051A80E.
[FireDAC][Phys][SQLite] ERROR: near "CODICE": syntax error.
CREATE TABLE anag_giac (CODICE char(30) DEFAULT NULL,
COD_TECNICO char(10) DEFAULT NULL,
DESCRIZION char(100) DEFAULT NULL,
PREZZO double DEFAULT NULL,
UM char(20) DEFAULT NULL,
STATO char(1) DEFAULT NULL,
KEY IANAG_GIAC (CODICE,COD_TECNICO) )
Any Ideas?
Try this:
CREATE TABLE anag_giac (
CODICE CHAR(30) NOT NULL,
COD_TECNICO CHAR(10) NOT NULL,
DESCRIZION CHAR(100) NULL,
PREZZO DOUBLE PRECISION NULL,
UM CHAR(20) NULL,
STATO CHAR(1) NULL,
CONSTRAINT PrimaryKey1 PRIMARY KEY (CODICE,COD_TECNICO)
);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.