oracle - 物化视图
create or replace view ov_applicant of ob_applicant with object oid (applicantid) as select * from applicant;--ov_applicant完全等同applicant
insert into ov_applicant values g_ob_applicantinfo;
--将g_ob_applicantinfo(即ob自定义类型object)里面的数据插入到ov_applicant中,applicant表里面就有数据了,
避免了,insert into tablenames('','',',',',','') values('','',',',','',) 这种很繁琐的写法,特别是对字段很多的大表字段,上百个的
更改:update ov_policy policy set policy = g_ob_policy where policy.policyid = g_ob_policy.policyid;
一步一个脚印,方便自己复习,欢迎大家指正,非常感谢,共同进步!
posted on 2012-08-01 15:28 lovebeauty 阅读(169) 评论(0) 编辑 收藏 举报