亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

oracle pl/sql中創建視圖

系統 2114 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一区二区 | 香蕉综合网| 色婷婷久久综合中文久久一本 | 日韩视频久久 | 亚洲综合在线播放 | 男人你懂的网站 | 免费国产视频在线观看 | 久久免费激情视频 | 免费观看欧美成人禁片 | 欧美色交 | 国产高清对白国产露脸91 | 国产免费一区二区三区 | 色 在线播放 | 精品九九久久国内精品 | 黑人巨大vs日本人优 | 婷婷涩涩| 国产伦精品一区二区三区免费观看 | 国产免费一区二区三区在线 | 久久精品视频日本 | 天天操天天舔天天射 | 波多野野结衣1区二区 | 欧美一级毛片一 | 在线欧美69v免费观看视频 | 久久99精品久久久久久h | 91手机在线视频观看 | 丁香综合在线 | 亚洲综合99 | 亚洲综合色视频 | 久久中文字幕视频 | 欧美一级在线全免费 | 91精品免费久久久久久久久 | 欧美激情精品久久久久久久久久 | 成年人网站免费 | 国产一区在线播放 | 日本人一级毛片免费完整视频 | 亚洲一区二区欧美 | 精品亚洲成a人在线观看 | 欧美视频在线不卡 | 国产瑟瑟 | 天天操网 |