您的位置:首頁技術文章
文章詳情頁

一個sql注入錯誤,求哪位大神解決一下

瀏覽:110日期: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;

這是注冊數據庫表的其中一個表

問題解答

回答1:

`status` tinyint(1) DEFAULT NULL,

最后的逗號去掉

国产综合久久一区二区三区