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')