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.
lpadこのクエリがあり、出力にゼロが表示されています
lpad
SELECT '000000000000' || TO_CHAR(rlseamt,'FM9999999999D00') Transaction_Amount FROM ln01mast
ゼロを動的に配置したい例: 数値が 188888 の場合、000000188888.00 のように表示されます。
最初のゼロでフォーマット マスクを使用します。 TO_CHAR(rlseamt, 'FM00000000000009D00')
TO_CHAR(rlseamt, 'FM00000000000009D00')