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.
select trunc('11.01') from dual
输出:11
jasper 报告中的数据类型是什么,它是 BigDecimal。是否有任何解决方法可以将其作为字符串。
Oracle 的TRUNC函数仅适用于日期和数字,因此 Oracle 将您11.01转换为数字。要让 Oracle 将其作为字符串返回,请执行以下操作:
TRUNC
11.01
select to_char(trunc('11.01')) from dual;