我是靠谱客的博主 碧蓝发箍,这篇文章主要介绍oracle缺少函数,为什么这个merge语句会报缺失ON关键字啊?,现在分享给大家,希望可以做个参考。

最初由 qinlu1219 发布

[B][php]merge into tbl_callback_time dest using

(select ta.id,

max(ta.first_agent) first_agent,

max(ta.first_call) first_call,

max(ta.second_agent) second_agent,

max(ta.second_call) second_call,

max(ta.last_agent) last_agent,

max(ta.last_call) last_call,

min(ta.call_off_flag) call_off_flag

from(select r.sample_id id,

decode(r.result_code,'1',r.USER_ID) first_agent,

decode(r.result_code, '1', r.create_time) first_call,

decode(r.result_code,'2',r.user_id) second_agent,

decode(r.result_code, '2', r.create_time) second_call,

decode(r.result_code,'3',r.USER_ID) last_agent,

decode(r.result_code, '3', r.create_time) last_call,

decode(s.biz_state,'3',(case when c.CALL_OFF_FLAG not in('0','1','2','3','4

最后

以上就是碧蓝发箍最近收集整理的关于oracle缺少函数,为什么这个merge语句会报缺失ON关键字啊?的全部内容,更多相关oracle缺少函数内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(137)

评论列表共有 0 条评论

立即
投稿
返回
顶部