科学健康资讯 · 内容仅供参考,不替代专业诊疗 联系我们|疾病百科
操作系统

updateset(update set from)

2023-05-02 操作系统 本文链接

昨天给客户做了一个二开功能,其中用了这样一句sql

update sorder set orderno=orderno+'new orderno;',status='dsjjhbbvvvsv' where id='whwhhwhah'

这个sql有问题吗?其实我也觉得没问题,就打包发布了。过了一个多小时以后客户居然反应功能有问题,该更新的没有更新 。于是就各种的查日志,发现日志里也没报错啊!有点奇怪的是status字段更新了,就orderno没更新,还是Null。最后发现null值字段都没有更新,应该用orderno=isNull(orderno,'')+'nwe order no;'就好了。还是经验不足啊[捂脸]

I also included two tables last year that set forth the key quantitative ingredients that will help you estimate our per-share intrinsic value. I won’t repeat the full discussion here; you can find it reproduced>

本文内容仅供健康科普参考,不能替代专业医疗诊断和治疗建议。如有身体不适,请及时就医并遵从医师指导。

相关阅读