oracle里select aato_char1230000 from dual 輸出的是aa 123 不是想要的aa123 要怎麼做
要將'aa'||to_char(123,'0000')的輸出改為'aa123',可以使用TRIM函數來去除空格。以下是修正後的查詢語句:
select trim(' ' from 'aa'||to_char(123,'0000')) from dual;
這樣就可以得到'aa123'的輸出結果。
原文地址: https://www.cveoy.top/t/topic/iNKi 著作权归作者所有。请勿转载和采集!