我有一个包含此数据的表
id , name , description
1 , apple , ''
2 , orange , ''
我尝试传递以下语句来更新行,以便description列是'desc of apple‘和'desc of orange’,但它不起作用。
Update TestTable Set description = 'desc of ' + name
连接字符串的正确语法是什么?
发布于 2009-09-18 18:22:39
SQLite的string concatenation operator是"||
",而不是"+
“
UPDATE TestTable SET description = 'desc of ' || name;
https://stackoverflow.com/questions/1446125
复制相似问题