欧美三区_成人在线免费观看视频_欧美极品少妇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久久久精品 | 日本视频免费高清一本18 | 激情综合婷婷久久 | 精品国产91亚洲一区二区三区www | 欧美精品99 | 久草在线视频在线 | 王的女人印度剧电视剧免费观看32集 | 九九色综合 | 午夜精品久久久久久 | 91在线免费视频 | 日韩视频在线一区二区三区 | 在线视频不卡国产在线视频不卡 | 日韩 亚洲 欧美 中文 高清 | 国产一级一级国产 | 午夜影视 | 欧美久久xxxxxx影院 | 丰满少妇久久久久久久 | 九九在线视频 | 欧美日韩一区二区三在线 | 亚洲精品一区二区三区蜜桃久 | 97国产精品人妻无码久久久 | 亚洲欧美中文字幕 | 91精品观看91久久久久久 | 日韩国产在线观看 | 日韩三级中文 | 精品欧美乱码久久久久久 | 国产精品久久久久久久久久久久冷 | 91视频 - 88av | 日本亚洲精品色婷婷在线影院 | 成人综合网站 | 国产精品视频1区 | 免费观看一级黄色片 | 精品一区二区久久久久久久网站 | 2020天天狠天天透天干天天怕 | 五月天婷婷在线视频 | 色婷婷综合久久久久中文 | 青青青青手机在线视频观看国产 | 特黄特色的免费大片看看 | 精品国产影院 | 亚洲免费色| 亚洲性69影院在线观看 |