这个 MySQL 语句有什么问题?
$my->query("UPDATE ideas
SET category = 'Document Options',
category_id = '4',
status = 'Released',
status_id = '3',
title = 'Support for iPad',
idea = 'Add support for iPad. Allow uploads and downloads via the anonymous App for iPhone and iPad.',
release = '0',
release_date = ''
WHERE id = '225'");
$my
是一个自定义类,其中包含许多其他 mysql 命令。为了证明它工作正常,它非常适合以下查询:
$my->query("UPDATE idea_feedback
SET Feedback = '$feedback',
Date = '$fdate'
WHERE ID = '$i'");
$my->query("UPDATE ideas
SET category = 'Document Options',
category_id = '4',
status = 'Released',
status_id = '3',
title = 'Support for iPad',
idea = 'Add support for iPad. Allow uploads and downloads via the anonymous App for iPhone and iPad.',
release = '0',
release_date = ''
WHERE id = '225'");
$my
is a custom class which contains a lot of other mysql commands. To prove it works fine it works great for the following query:
$my->query("UPDATE idea_feedback
SET Feedback = '$feedback',
Date = '$fdate'
WHERE ID = '$i'");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Release 是一个关键字,反引号
注释:
Release is a keyword, backtick it
Notes: