The CREATE TABLE ` news ` (
` id ` int (11), NOT NULL AUTO_INCREMENT,
` title ` text,
` st ` varchar (100) the DEFAULT NULL,
` author ` varchar (100) the DEFAULT NULL,
` news_type_id ` int (11) the DEFAULT NULL,
` browser_count ` int (11) the DEFAULT ` 0 `,
` photo ` varchar (200) the DEFAULT NULL,
PRIMARY KEY (` id `),
The KEY ` news_type_id ` (` news_type_id `),
The CONSTRAINT ` news_ibfk_1 ` FOREIGN KEY (` news_type_id `) REFERENCES ` news_type ` (` id `)
);
CodePudding user response:
` browser_count ` int (11) the DEFAULT ` 0 `???????
You are defined as type int to a string for the default value? The single quotation marks,
CodePudding user response: