มีวิธีการแบ่งรหัส 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
นั่นคือ SQL ธรรมดาไม่ใช่ PL / pgSQL
—
a_horse_with_no_name
ฉันรวมเฉพาะส่วนที่ฉันต้องการความช่วยเหลือเป็นส่วนหนึ่งของฟังก์ชั่น PL / pgSQL
—
dw8547