pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<legend id='s6fpb'><style id='s6fpb'><dir id='s6fpb'><q id='s6fpb'></q></dir></style></legend>

      1. <i id='s6fpb'><tr id='s6fpb'><dt id='s6fpb'><q id='s6fpb'><span id='s6fpb'><b id='s6fpb'><form id='s6fpb'><ins id='s6fpb'></ins><ul id='s6fpb'></ul><sub id='s6fpb'></sub></form><legend id='s6fpb'></legend><bdo id='s6fpb'><pre id='s6fpb'><center id='s6fpb'></center></pre></bdo></b><th id='s6fpb'></th></span></q></dt></tr></i><div class="jxv7hjx" id='s6fpb'><tfoot id='s6fpb'></tfoot><dl id='s6fpb'><fieldset id='s6fpb'></fieldset></dl></div>
        • <bdo id='s6fpb'></bdo><ul id='s6fpb'></ul>
        <tfoot id='s6fpb'></tfoot>

        <small id='s6fpb'></small><noframes id='s6fpb'>

      2. SQL 根據兄弟節點屬性值選擇 XML 節點

        SQL Select XML Node based on sibling node attribute value(SQL 根據兄弟節點屬性值選擇 XML 節點)
        • <bdo id='xOugA'></bdo><ul id='xOugA'></ul>
          <i id='xOugA'><tr id='xOugA'><dt id='xOugA'><q id='xOugA'><span id='xOugA'><b id='xOugA'><form id='xOugA'><ins id='xOugA'></ins><ul id='xOugA'></ul><sub id='xOugA'></sub></form><legend id='xOugA'></legend><bdo id='xOugA'><pre id='xOugA'><center id='xOugA'></center></pre></bdo></b><th id='xOugA'></th></span></q></dt></tr></i><div class="vlrvbpt" id='xOugA'><tfoot id='xOugA'></tfoot><dl id='xOugA'><fieldset id='xOugA'></fieldset></dl></div>
          <legend id='xOugA'><style id='xOugA'><dir id='xOugA'><q id='xOugA'></q></dir></style></legend><tfoot id='xOugA'></tfoot>

            • <small id='xOugA'></small><noframes id='xOugA'>

                    <tbody id='xOugA'></tbody>
                  本文介紹了SQL 根據兄弟節點屬性值選擇 XML 節點的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..
                  <Findings>
                     <Finding EcinRecordID="1042893">
                        <Name>Goal Length of Stay for the ORG</Name>
                        <Selected Value="0" DisplayValue="No"/>
                     </Finding>
                     <Finding EcinRecordID="1042894">
                        <Name>Goal Length of Stay for the GRG</Name>
                        <Selected Value="1" DisplayValue="Yes"/>
                        <NoteText>3 days</NoteText>
                     </Finding>
                  </Findings>
                  

                  2 個挑戰:

                  1. 選擇Findings/Finding/Name 的節點值,其中Findings/Finding/Selected Value = "1"
                  2. 選擇Findings/Finding/NoteText 的節點值,其中Findings/Finding/Selected Value = "1"

                  將其放入存儲過程.我已經嘗試了至少 3 打使用查詢、存在和值的版本.可以得到Selected Value = '1',但是好像不能在Select語句中賦值對應的Name值.

                  Putting this into a stored procedure. I've tried at least 3 dozen versions using query, exists and value. I can get the whether the Selected Value = '1', but can't seem to assign the corresponding Name value in the Select statement.

                  SELECT
                     p.value('(Payments[1]/Payment[1]/PreAuthCertNumber)[1]', 'varchar(20)') AS PriorAuthNumber
                     ,qa.value('(Name[1])','varchar(255)') AS Question
                     ,qa.value('(Findings/Finding/Name)[1]','varchar(255)') AS Answer
                      FROM #ValueExample
                      CROSS APPLY XMLDocument.nodes('/OutboundDataFeed/Patient/PatientAdmission') as t(p)
                      CROSS APPLY XMLDocument.nodes('/OutboundDataFeed/Patient/PatientAdmission/CMAssessments/CMAssessment/Sections/Section/Questions/Question') as u(qa)
                  

                  謝謝!

                  推薦答案

                  declare @XML xml
                  
                  set @XML = '
                  <Findings>
                     <Finding EcinRecordID="1042893">
                        <Name>Goal Length of Stay for the ORG</Name>
                        <Selected Value="0" DisplayValue="No"/>
                     </Finding>
                     <Finding EcinRecordID="1042894">
                        <Name>Goal Length of Stay for the GRG</Name>
                        <Selected Value="1" DisplayValue="Yes"/>
                        <NoteText>3 days</NoteText>
                     </Finding>
                  </Findings>'
                  
                  select @XML.value('(/Findings/Finding[Selected/@Value = "1"]/Name/text())[1]', 'varchar(255)') as Name,
                         @XML.value('(/Findings/Finding[Selected/@Value = "1"]/NoteText/text())[1]', 'varchar(255)') as NoteText
                  

                  結果:

                  Name                                     NoteText
                  ---------------------------------------- -------------------------
                  Goal Length of Stay for the GRG          3 days
                  

                  這篇關于SQL 根據兄弟節點屬性值選擇 XML 節點的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數據庫列表和 SQL Server 實例使用的空間嗎?) - IT屋-程序員軟件開發
                  How to create a login to a SQL Server instance?(如何創建對 SQL Server 實例的登錄?)
                  How to know the version and edition of SQL Server through registry search(如何通過注冊表搜索知道SQL Server的版本和版本)
                  Why do I get a quot;data type conversion errorquot; with ExecuteNonQuery()?(為什么會出現“數據類型轉換錯誤?使用 ExecuteNonQuery()?)
                  How to show an image from a DataGridView to a PictureBox?(如何將 DataGridView 中的圖像顯示到 PictureBox?)
                  WinForms application design - moving documents from SQL Server to file storage(WinForms 應用程序設計——將文檔從 SQL Server 移動到文件存儲)

                  • <tfoot id='W0PiP'></tfoot>

                      • <legend id='W0PiP'><style id='W0PiP'><dir id='W0PiP'><q id='W0PiP'></q></dir></style></legend>
                        <i id='W0PiP'><tr id='W0PiP'><dt id='W0PiP'><q id='W0PiP'><span id='W0PiP'><b id='W0PiP'><form id='W0PiP'><ins id='W0PiP'></ins><ul id='W0PiP'></ul><sub id='W0PiP'></sub></form><legend id='W0PiP'></legend><bdo id='W0PiP'><pre id='W0PiP'><center id='W0PiP'></center></pre></bdo></b><th id='W0PiP'></th></span></q></dt></tr></i><div class="vbzz7v7" id='W0PiP'><tfoot id='W0PiP'></tfoot><dl id='W0PiP'><fieldset id='W0PiP'></fieldset></dl></div>

                        <small id='W0PiP'></small><noframes id='W0PiP'>

                          <tbody id='W0PiP'></tbody>
                          • <bdo id='W0PiP'></bdo><ul id='W0PiP'></ul>
                            主站蜘蛛池模板: 外观设计_设备外观设计_外观设计公司_产品外观设计_机械设备外观设计_东莞工业设计公司-意品深蓝 | 黄石妇科医院_黄石东方女子医院_黄石东方妇产医院怎么样 | 依维柯自动挡房车,自行式国产改装房车,小型房车价格,中国十大房车品牌_南京拓锐斯特房车 - 南京拓锐斯特房车 | 盘式曝气器-微孔曝气器-管式曝气器-曝气盘-斜管填料 | 郑州市前程水处理有限公司 | 重庆网站建设,重庆网站设计,重庆网站制作,重庆seo,重庆做网站,重庆seo,重庆公众号运营,重庆小程序开发 | 企业彩铃制作_移动、联通、电信集团彩铃上传开通_彩铃定制_商务彩铃管理平台-集团彩铃网 | 环讯传媒,永康网络公司,永康网站建设,永康小程序开发制作,永康网站制作,武义网页设计,金华地区网站SEO优化推广 - 永康市环讯电子商务有限公司 | LZ-373测厚仪-华瑞VOC气体检测仪-个人有毒气体检测仪-厂家-深圳市深博瑞仪器仪表有限公司 | 臻知网大型互动问答社区-你的问题将在这里得到解答!-无锡据风网络科技有限公司 | 盐城网络公司_盐城网站优化_盐城网站建设_盐城市启晨网络科技有限公司 | 硫酸亚铁-聚合硫酸铁-除氟除磷剂-复合碳源-污水处理药剂厂家—长隆科技 | DDoS安全防护官网-领先的DDoS安全防护服务商 | MOOG伺服阀维修,ATOS比例流量阀维修,伺服阀维修-上海纽顿液压设备有限公司 | 博医通医疗器械互联网供应链服务平台_博医通 | 热回收盐水机组-反应釜冷水机组-高低温冷水机组-北京蓝海神骏科技有限公司 | 爱德华真空泵油/罗茨泵维修,爱发科-比其尔产品供应东莞/杭州/上海等全国各地 | 耐火砖厂家,异形耐火砖-山东瑞耐耐火材料厂 | 色谱柱-淋洗液罐-巴罗克试剂槽-巴氏吸管-5ml样品瓶-SBS液氮冻存管-上海希言科学仪器有限公司 | 企业VI设计_LOGO设计公司_品牌商标设计_【北京美研】 | 智能汉显全自动量热仪_微机全自动胶质层指数测定仪-鹤壁市科达仪器仪表有限公司 | 应急灯_消防应急灯_应急照明灯_应急灯厂家-大成智慧官网 | 暴风影音| 特种电缆厂家-硅橡胶耐高温电缆-耐低温补偿导线-安徽万邦特种电缆有限公司 | 奥因-光触媒除甲醛公司-除甲醛加盟公司十大品牌 | 广州番禺搬家公司_天河黄埔搬家公司_企业工厂搬迁_日式搬家_广州搬家公司_厚道搬迁搬家公司 | R507制冷剂,R22/R152a制冷剂厂家-浙江瀚凯制冷科技有限公司 | 中空玻璃生产线,玻璃加工设备,全自动封胶线,铝条折弯机,双组份打胶机,丁基胶/卧式/立式全自动涂布机,玻璃设备-山东昌盛数控设备有限公司 | 洛阳防爆合格证办理-洛阳防爆认证机构-洛阳申请国家防爆合格证-洛阳本安防爆认证代办-洛阳沪南抚防爆电气技术服务有限公司 | 板式换网器_柱式换网器_自动换网器-郑州海科熔体泵有限公司 | H型钢切割机,相贯线切割机,数控钻床,数控平面钻,钢结构设备,槽钢切割机,角钢切割机,翻转机,拼焊矫一体机 | 天津暖气片厂家_钢制散热器_天津铜铝复合暖气片_维尼罗散热器 | 低温等离子清洗机(双气路进口)-嘉润万丰 | 塑钢件_塑钢门窗配件_塑钢配件厂家-文安县启泰金属制品有限公司 深圳南财多媒体有限公司介绍 | 膏剂灌装旋盖机-眼药水灌装生产线-西林瓶粉剂分装机-南通博琅机械科技 | 济南铝方通-济南铝方通价格-济南方通厂家-山东鲁方通建材有限公司 | 样品瓶(色谱样品瓶)百科-浙江哈迈科技有限公司 | 液氮罐(生物液氮罐)百科-无锡爱思科 | PSI渗透压仪,TPS酸度计,美国CHAI PCR仪,渗透压仪厂家_价格,微生物快速检测仪-华泰和合(北京)商贸有限公司 | 等离子表面处理机-等离子表面活化机-真空等离子清洗机-深圳市东信高科自动化设备有限公司 | EPDM密封胶条-EPDM密封垫片-EPDM生产厂家 | 锌合金压铸-铝合金压铸厂-压铸模具-冷挤压-誉格精密压铸 |