sqlyog 不更新记录
我尝试从 sqlyog 更新记录,但它们没有更新。
我尝试运行此 sql 查询,但结果仍然有 0 行受到影响。 UPDATE website_prod
SET website_name
='论文',prod_name
='常规',天
='10',< code>price='9.99' 其中 website_name
='Papers' AND prod_name
='Regular' AND 天
='5'并且价格
='9.99';
任何人都可以解释为什么即使我将天数从 10 更改为 5,记录也没有更新。
谢谢
I tried updating records from sqlyog but they were not updated.
i tried running this sql query but still got result 0 rows affected.
UPDATE website_prod
SET website_name
='Papers',prod_name
='Regular',days
='10',price
='9.99' WHERE website_name
='Papers' AND prod_name
='Regular' AND days
='5' AND price
='9.99';
Can anyone explain why the record is not getting updated even thou i am changing values of days from 10 to 5.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
难道是 这个问题?
(更新和删除也是同样的问题)
如果您有浮点数据类型,则表上应该始终有一个基于非浮动列的主键。
Could it be this problem?
(it is same problem with UPDATE and DELETE)
If you have FLOATING POINT data types you should always have a Primary key on the table based on non-floating columns.