在不了解数据库的情况下,很难做到具体。在SQL Server中,语法类似于…
UPDATE MyTable SET Field1 = IsNull(@Field1, Field1), Field2 = IsNull(@Field2, Field2), Field3 = IsNull(@Field3, Field3)WHERe <your criteria here>
编辑
由于您指定了SQLLite …用替换我的
IsNull函数,
COALESCE()或交替查看该
IfNull函数。

在不了解数据库的情况下,很难做到具体。在SQL Server中,语法类似于…
UPDATE MyTable SET Field1 = IsNull(@Field1, Field1), Field2 = IsNull(@Field2, Field2), Field3 = IsNull(@Field3, Field3)WHERe <your criteria here>
编辑
由于您指定了SQLLite …用替换我的
IsNull函数,
COALESCE()或交替查看该
IfNull函数。