oracle function trunc: ORA-01898: too many precision specifiers

        When using the TRUNC() function, I want to intercept the date in the form of yyyyMMdd, so I use TRUNC(SYSDATE,'yyyyMMdd'), and the query error: ORA-01898: Too many precision specifiers.

        Solution: The TRUNC(SYSDATE) function is to intercept today by default, so there is no need to specify the form later, just remove the'yyyyMMdd'.

Guess you like

Origin blog.csdn.net/qq_41061437/article/details/111195292
Recommended