SQLite更新字符串连接的语法?

前端之家收集整理的这篇文章主要介绍了SQLite更新字符串连接的语法?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个这个数据的表
  1. id,name,description
  2. 1,apple,''
  3. 2,orange,''

我试图传递以下语句来更新行,因此描述列是“desc of apple”和“desc of orange”,但是它不起作用.

  1. Update TestTable Set description = 'desc of ' + name

连接字符串的正确语法是什么?

sqlite的 string concatenation operator是“||”,而不是“”
  1. UPDATE TestTable SET description = 'desc of ' || name;

猜你在找的Sqlite相关文章