Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 10 years ago.
您需要使用 AND 来组合您的条件,而不仅仅是逗号。
例如
UPDATE $mysqlTable SET queueStatusINT = '2' WHERE statusINT = '8' AND queueStatusINT != '2' AND type = '$type'
You need to use AND to combine your criteria, not just commas.
For example
将您的更新更改为:
UPDATE $mysqlTable SET queueStatusINT='2’ WHERE statusINT=8 AND queueStatusINT !=2 AND type=‘$type’;
我假设queueStatusINT是一个整数(顾名思义)-您应该省略“”,因为它们象征着字符串/字符。
最好的祝愿,法比安
Change your UPDATE to:
I assume queueStatusINT is an Integer (as the name suggests) - you should leave out the '' as they symbolize a string/character.
Best wishes,Fabian
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
您需要使用 AND 来组合您的条件,而不仅仅是逗号。
例如
You need to use AND to combine your criteria, not just commas.
For example
将您的更新更改为:
我假设queueStatusINT是一个整数(顾名思义)-您应该省略“”,因为它们象征着字符串/字符。
最好的祝愿,
法比安
Change your UPDATE to:
I assume queueStatusINT is an Integer (as the name suggests) - you should leave out the '' as they symbolize a string/character.
Best wishes,
Fabian