发布网友 发布时间:2022-04-07 22:02
共2个回答
热心网友 时间:2022-04-07 23:31
decode可以代替case when语句,在语句写法上可以节省很多coding的时间热心网友 时间:2022-04-08 00:49
Oracle now supports simple and searched CASE statements. CASE statements are similar in purpose to the DECODE statement, but they offer more flexibility and logical power. They are also easier to read than traditional DECODE statements, and offer better performance as well. They are commonly used when breaking categories into buckets like age (for example, 20-29, 30-39, and so on).