我試圖寫一個報告,我將在Excel中,其連接兩個記錄成同一個單元格,顯示每個記錄之間的回車發送出去。我一直在嘗試|| chr(10)|| chr(13)||但這隻適用於以腳本形式運行而不在Excel中運行查詢的情況。回車Oracle 10g的SQL
是否有強制回車的更好的辦法?
select語句如下:
select distinct
cap.cap_stuc "Application ID"
,stu.stu_surn "Surname"
,initcap(stu.stu_fnm1) "First Name"
,min(decode(rn, 1, choices.cap_pref)) || ' ' || min(decode(rn, 1,choices.cap_mcrc)) || ' ' || min(decode(rn, 1, choices.crs_name)) || chr(10)||chr(13) || min(decode(rn, 2, choices.cap_pref)) || ' ' || min(decode(rn, 2, choices.cap_mcrc)) || ' ' || min(decode(rn, 2, choices.crs_name)) "App Details"
感謝