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

字符串连接的SQLite更新语法?,sql,sqlite,syntax,string-concatenation,Sql,Sqlite,Syntax,String Concatenation,我有一张表,上面有这些数据 id , name , description 1 , apple , '' 2 , orange , '' 我试图传递以下语句来更新行,因此description列是'desc of apple'和'desc of orange',但它不起作用 Update TestTable Set description = 'desc of ' + name 连接字符串的正确语法是什么?SQLite的语法是“|”,而不是“+” +不是用于字符串连接的标

我有一张表,上面有这些数据

id , name    , description
1  , apple   , ''
2  , orange  , ''
我试图传递以下语句来更新行,因此description列是'desc of apple'和'desc of orange',但它不起作用

 Update TestTable Set description = 'desc of ' + name 
连接字符串的正确语法是什么?

SQLite的语法是“
|
”,而不是“
+


+不是用于字符串连接的标准SQL语法。是否有用于字符串连接的标准SQL语法?似乎每个数据库都使用不同的数据库。MySQL使用Concat()函数,SQL Lite使用| |,SQL Server使用+。肯定是应该标准化的东西。是的,有一个标准的SQL语法。它位于中的
|
。只是SQL Server和MySQL选择不遵守标准。虽然MySQL可以通过设置
UPDATE TestTable SET description = 'desc of ' || name;