您的位置:首页技术文章
文章详情页

一个sql注入错误,求哪位大神解决一下

浏览:66日期: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,

最后的逗号去掉