- 最后登录
- 2014-1-27
- 在线时间
- 37 小时
- 威望
- 45
- 金钱
- 456
- 注册时间
- 2012-5-4
- 阅读权限
- 10
- 帖子
- 45
- 精华
- 1
- 积分
- 45
- UID
- 403
|
3#
发表于 2013-2-25 12:14:58
本帖最后由 wonder 于 2013-2-25 15:30 编辑
这是这个过程中的一段- merge into collect_data@t205_app ca
- using app_data at
- on (ca.ad_id=regexp_substr(at.cpid,'[[:digit:]]+') and ca.site_id=regexp_substr(at.cpid,'[[:digit:]]+',1,2)
- and ca.child_channel=to_number(regexp_substr(at.cpid,'[[:digit:]]+',1,3)) and
- to_char(ca.stated_time,'yyyymmdd')=to_char(at.acti_time,'yyyymmdd')
- and ca.stated_time>=to_date(v_yesterday,'yyyymmdd')-8 and ca.stated_time<=to_date(v_yesterday,'yyyymmdd'))
- when matched then
- update set ca.activity_user=at.huoyueusers,ca.start_time=at.qidong,ca.action_user=at.action_user
- when not matched then
- insert(id,stated_time,ad_id,site_id,child_channel,activative_user,REACH_USER_COUNT,activity_user,start_time,action_user,created_time)
- values(collect_data_seq.nextval@t205_app,acti_time,regexp_substr(cpid,'[[:digit:]]+'),regexp_substr(cpid,'[[:digit:]]+',1,2),
- regexp_substr(cpid,'[[:digit:]]+',1,3),jihuousers,at.reach_user_count,huoyueusers,qidong,at.action_user,insert_date);
-
复制代码 编译的时候提示:
PROCEDURE APP.STATI_APP_DATA 编译错误
错误:PL/SQL: ORA-38101: INSERT VALUES 子句中的列无效: "CA"."REACH_USER_COUNT"
行:210
文本:merge into collect_data@t205_app ca
错误:PL/SQL: SQL Statement ignored
行:210
文本:merge into collect_data@t205_app ca
|
|