欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

oracle pl/sql中創建視圖

系統 1899 0

模式:

create or replace view 視圖名 as ...

舉例:

create or replace view vw_rightpeople
(rightpeopletypename, rightpeopletype, rightpeopleid, organizetypeno, parentorganizeno, idno, idtype, rightpeoplename, rightpeopleproperty, chairman, resopertype, resstatus, bitspno, address, zip, phoneno, code2, code3, oldpk, description, businesssystemid, createtype, createactiveid, isrestrict)
as
select '單位' rightpeopletypename,2 rightpeopletype,organizeno rightpeopleid,organizetypeno,parentorganizeno,idno,idtype,fullname rightpeoplename,type rightpeopleproperty,chairman,resopertype,resstatus,bitspno,
(select (select region.district from region where regionid=nvl(address.district,0))||street from address where businessno=organizeno and typeno=3 and rownum<2) adress,
(select to_char(zip) from address where businessno=organizeno and typeno=3 and rownum<2) zip,
(select CONTACTCONTENT from contact where businessno=organizeno and typeno=3 and rownum<2) phoneno,code2,code3,oldpk,description,businesssystemid,createtype,createactiveid,isrestrict
from orgorganize a where a.organizeno>100 and a.ORGANIZETYPENO in (41,42,43,44,46,47)
union all
select /*+ index(op.pk_orgpeople) +*/ '個人' rightpeopletypename,1 rightpeopletype,participantno rightpeopleid,null,organizeno,idno,idtype,firstname rightpeoplename,BUYERATTR rightpeopleproperty,sex,resopertype,resstatus,bitspno,
(select (select region.district from region where regionid=nvl(address.district,0))||street from address where businessno=participantno and typeno=4 and rownum<2) adress,
(select to_char(zip) from address where businessno=participantno and typeno=4 and rownum<2) zip,
(select CONTACTCONTENT from contact where businessno=participantno and typeno=4 and rownum<2) phoneno,code2,code3,oldpk,description,businesssystemid,createtype,createactiveid,isrestrict
from orgpeople op where exists (select 1 from orgorganize oo where oo.organizeno=op.organizeno and oo.organizetypeno in (41,42,43,44,46,47));

oracle pl/sql中創建視圖


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 99久久国产综合精品女小说 | 欧美日韩一区二区中文字幕视频 | 日本不卡免费新一二三区 | 草草视频手机在线观看视频 | 九久精品| 久久免费看少妇高潮A片JA小说 | 国外成人免费视频 | 大香伊蕉国产短视频69 | 免费激情| 91蝌蚪九色| 国产精品成人免费观看 | caoliusequ| 福利入口在线观看 | 国产高清在线视频 | 久久宗合色 | 国产精品69久久久久水密桃 | 日日操天天操夜夜操 | 日本黄页免费大片在线观看 | 尤物视频在线观看 | 亚洲国产资源 | 日韩欧美色 | 免费黄网站在线播放 | 久久久日韩精品一区二区 | 大伊香蕉在线观看视频 wap | 亚洲成人在线免费 | 天天操天天擦 | 女女女女bbbbbb毛片在线 | 国内精品免费视频 | 欧美午夜在线 | 大伊香蕉在线观看视频 wap | 亚洲爽 | av中文字幕在线 | 久久久亚洲欧洲日产国码606 | 国产日韩欧美中文 | 免费久久99精品国产婷婷六月 | 国产欧美日韩精品一区 | 成人免费午夜性视频 | 日韩成人影院 | 午夜免费视频 | 9久9久女女热精品视频免费观看 | a级毛片免费高清视频 |