问题
ceiling in oracle 11g throws java.sql.SQLException: ORA-00904: "CEILING": invalid identifier. Till now are used Oracle 10G, now we upgraded to 11G,afterthe we are getting ""CEILING": invalid identifier" error
can any one help on this please.
回答1:
There is no function CEILING that is part of any stock Oracle database install of any version.
If you are using a function CEILING in your 10g database, that implies that it is a user-defined function. If that function doesn't exist in 11g, you'd need to create it there.
Oracle does have a function CEIL that takes a number and rounds up to the next highest integer. If that's all you are doing, it probably makes more sense to use the built-in function rather than writing your own wrapper function.
来源:https://stackoverflow.com/questions/19318487/ora-00904-ceiling-invalid-identifier-in-oracle-11g