文章詳情頁
一個(gè)sql注入錯(cuò)誤,求哪位大神解決一下
瀏覽:127日期:2022-06-10 13:56:35
問題描述
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 'CREATE TABLE `dc_addons_access`(
`user_id` int(10) NOT NULL,
`addon` varchar' at line 3
CREATE TABLE `dc_addons_access`(
`user_id` int(10) NOT NULL,
`addon` varchar(50) NOT NULL,
`mpid` int(10) NOT NULL,
`status` tinyint(1) DEFAULT NULL,
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
這是注冊(cè)數(shù)據(jù)庫表的其中一個(gè)表
問題解答
回答1:`status` tinyint(1) DEFAULT NULL,
最后的逗號(hào)去掉
排行榜

熱門標(biāo)簽