MySQL实例
建表实例:
CREATE TABLE command_content( ID INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, CONTENT VARCHAR(2048), COMMAND_ID INT(11), FOREIGN KEY(COMMAND_ID) REFERENCES command(ID) )ENGINE=InnoDB DEFAULT CHARSET=utf8;
说明:
建表“command_content”;
主键为“ID”,INT型11为,不为空,自增;
属性COMMAND_ID为外键,指向表“command”的属性“ID”