我通过 c# 代码使用以下查询在 MYSQL 中执行更新操作:
string query = "UPDATE Projects SET Manpower = CONCAT(Manpower," + "\'|" + manname +
"\') WHERE Name=\'" + projname + "\';";
后来,需要从 MYSQL 转移到 SQL CE。执行时出现错误:
The function is not recognized by SQL Server compact edition.
[Name of function = CONCAT.Data type (if unknown) = ]
我意识到在 SQL CE 中,“+”运算符用于连接。但我一直没能做对。关于如何修改上述语句的任何想法?