Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は concat 関数を広範囲に調査してきましたが、一時テーブルを作成する壁にぶつかりました。ID (例: 4323) とソース (例: PHI) の 2 つの列があります。ID列に「API-」の接頭辞を含む列を追加したい(例:API-4332)。誰にも洞察がありますか?
すべての行?
UPDATE TheTable SET id = 'API-'||id;
または、
UPDATE TheTable SET id = CONCAT('API-',id);
編集:
あなたの問題文から、あなたが新しい列を作成したいと思うようになりました (「列を追加したい...」)。混乱させて申し訳ありません。ID列を更新するように回答を変更しました。