mysql - 此查询中的 SQL 错误

标签 mysql sql coldfusion

我正在尝试为我的 CMS 系统注册。但每当我尝试创建它时,它都会给我这个错误

The following information is meant for the website developer for debugging purposes. Error Occurred While Processing Request Error Executing Database Query. 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 '', '0', '500000', '500000', ''2012-11-02 22:12:11'', '20', '1', 'hr-165-45.hd-20' at line 2

SQL 查询是这样的:

<cfquery name="insertMale" datasource = "#DSN#">
INSERT INTO users (id, username, real_name, password, auth_ticket, rank, vip_points, credits, activity_points, activity_points_lastupdate, seasonal_currency, loyalty_points, look, gender, motto, mail, account_created, last_online, online, ip_last, ip_reg, home_room, newbie_status, is_muted, mutant_penalty, mutant_penalty_expire, trade_lock, trade_lock_expire, block_newfriends, hide_online, hide_inroom, vip, vip_expire, birth, talent_status, mysterybox_key_colour, last_name_change, client_volume, nux_passed, seckey, voted, vandeweek, home_txt, donateur, stemmen, waarschuwing)
VALUES('#countUsers.recordcount+1#', '#form.username#', 'Donny', '#password#', 'GRANDCMS-', 1', '0', '500000', '500000', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '20', '1', 'hr-165-45.hd-208-2.ch-250-64.lg-285-82.sh-290-64', 'M', 'Nieuw op GrandHotel!', '#form.mail#', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '0', '#CGI.REMOTE_ADDR#', '#CGI.REMOTE_ADDR#', '0', '0',  '0', '0', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '0', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '0', '0', '0', '0', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '24-12-1995', '0', '0', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '100', '0', '0', '1', '0', 'geenhometxt', '0', '0', '0');
</cfquery>

我计算了列的数量,它是相同的,所以这不是问题。有人知道我做错了什么吗?

抱歉我的英语不好。我来自荷兰!

最佳答案

更改1',缺少一些内容!

关于mysql - 此查询中的 SQL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26830205/

相关文章:

java - 填充表格时如何防止速度变慢?

php - 使用mysql处理大数据

mysql - 如何获取数据库中最近一个月的数据?

mysql - 什么时候使用 INSERT IGNORE 好习惯?

javascript - 如何从 CFC 结果填充 Jquery 数组和 DOM 对象

regex - 如何使用 ColdFusion 从 XML 字符串中删除所有多余的空格?

mysql - 计算SQL中其他列的累计百分比(赛马)

php - 插入数据问题。在 php 循环中

mysql - sql:连接和计数

java - jsp 内的 cfm : how to get a variable from the jsp to the cfm?