为什么此 SQL 更新失败(“列名无效")? [英] Why is this SQL Update failing ("column name is not valid")?
本文介绍了为什么此 SQL 更新失败(“列名无效")?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个像这样的 SQL Server CE 表:
I've got a SQL Server CE table like so:
...我正在尝试像这样更新它的单独记录:
...and I'm trying to update its solitary record like so:
update workTables
set fileType = "INV"
然而我明白了:
为什么?
请看相关问题这里
推荐答案
您的查询应该是:
update [workTables]
set [fileType] = 'INV'
Note: single quotes ^^^^
这篇关于为什么此 SQL 更新失败(“列名无效")?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文