長いPL / pgSQLコード行を複数行に分割するにはどうすればよいですか?


16

PL / pgSQLコードの長い行を複数行に分割する方法はありますか?私のコンテキストは、次のようにテーブルに挿入を記録するトリガー関数です。

INSERT INTO insert_log (log_time, description)
VALUES (
    now()
    , 'A description. Made up of 3 semi long sentences. That I want to split, in the code, not in the log table, over 3 lines for readability.'
);

2
これはPL / pgSQLではなくプレーンなSQLです
-a_horse_with_no_name

助けが必要なチャンクのみを含めました。これはPL / pgSQL関数の一部です。
dw8547

回答:


弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.