创建表时遇到此错误。如何修复?
SQL查询:
CREATE TABLE Measurement(
MeasurementID NOT NULL ,
MeasurementTypeID INTEGER,
MeasurementNameCHAR( 100 ) ,
SemanticModelInfrastructureID INTEGER,
AddressCHAR( 150 ) ,
PRIMARY BOOL,
DerivedCalcCHAR( 255 ) ,
PRIMARY KEY ( MeasurementID ) ,
KEY ( MeasurementTypeID ) ,
KEY ( SemanticModelInfrastructureID )
);
MySQL 说:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'NOT NULL,
MeasurementTypeID INTEGER,
MeasurementName CHAR(100),
SemanticMo' at line 3