このデータを含むテーブルがあります
id , name , description
1 , apple , ''
2 , orange , ''
次のステートメントを渡して行を更新しようとしているので、説明列は「リンゴの説明」と「オレンジの説明」ですが、機能していません。
Update TestTable Set description = 'desc of ' + name
文字列を連結するための適切な構文は何ですか?
このデータを含むテーブルがあります
id , name , description
1 , apple , ''
2 , orange , ''
次のステートメントを渡して行を更新しようとしているので、説明列は「リンゴの説明」と「オレンジの説明」ですが、機能していません。
Update TestTable Set description = 'desc of ' + name
文字列を連結するための適切な構文は何ですか?
SQLite の文字列連結演算子は " ||
" であり、" " ではありませ+
ん
UPDATE TestTable SET description = 'desc of ' || name;