SQLite Update Syntax for string concatenation?

后端 未结 1 782
长发绾君心
长发绾君心 2021-02-05 07:35

I have a table with this data

id , name    , description
1  , apple   , \'\'
2  , orange  , \'\'

I am trying to pass the following statement to

1条回答
  •  不思量自难忘°
    2021-02-05 07:53

    SQLite's string concatenation operator is "||", not "+"

    UPDATE TestTable SET description = 'desc of ' || name;
    

    0 讨论(0)
提交回复
热议问题