SQL 更新不起作用。为什么?
只是一个简单的 SQL 问题 - 但我不知道出了什么问题,
"UPDATE veranstaltungen
SET name = '$nameV', SET Datum = '$DatumV', SET beschreibung = '$beschreibungV'
WHERE id = '$id'"
我想更新 id 为 $id 的表行。但这里什么也没发生? 变量都是正确的
Just a simple SQL question - Bbut i can't figure out whats wrong
"UPDATE veranstaltungen
SET name = '$nameV', SET Datum = '$DatumV', SET beschreibung = '$beschreibungV'
WHERE id = '$id'"
I want to update the table row where the id is $id. But nothing happens here?
the variables are all correct
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
给它喜欢
give it like
Mysql 有一个很棒的功能,就你个人而言。它被称为
mysql_error()
运行此函数并回显其输出,以查看您的服务器将告诉您有关此查询的信息。
我相信您比传递此问题的人更信任您的服务器。
Mysql has a wonderful feature, personally for you. It is called
mysql_error()
run this function and echo it's output to see what your server will tell about this query.
I believe that you can trust to your server much more than someone who passed along this question.