久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<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="qwawimqqmiuu" 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 根據(jù)兄弟節(jié)點(diǎn)屬性值選擇 XML 節(jié)點(diǎn)

        SQL Select XML Node based on sibling node attribute value(SQL 根據(jù)兄弟節(jié)點(diǎn)屬性值選擇 XML 節(jié)點(diǎn))
        • <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="qwawimqqmiuu" 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 根據(jù)兄弟節(jié)點(diǎn)屬性值選擇 XML 節(jié)點(diǎn)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送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 個挑戰(zhàn):

                  1. 選擇Findings/Finding/Name 的節(jié)點(diǎn)值,其中Findings/Finding/Selected Value = "1"
                  2. 選擇Findings/Finding/NoteText 的節(jié)點(diǎn)值,其中Findings/Finding/Selected Value = "1"

                  將其放入存儲過程.我已經(jīng)嘗試了至少 3 打使用查詢、存在和值的版本.可以得到Selected Value = '1',但是好像不能在Select語句中賦值對應(yīng)的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
                  

                  結(jié)果:

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

                  這篇關(guān)于SQL 根據(jù)兄弟節(jié)點(diǎn)屬性值選擇 XML 節(jié)點(diǎn)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Can I figure out a list of databases and the space used by SQL Server instances without writing SQL queries?(我可以在不編寫 SQL 查詢的情況下找出數(shù)據(jù)庫列表和 SQL Server 實(shí)例使用的空間嗎?) - IT屋-程序員軟件開發(fā)
                  How to create a login to a SQL Server instance?(如何創(chuàng)建對 SQL Server 實(shí)例的登錄?)
                  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()?(為什么會出現(xiàn)“數(shù)據(jù)類型轉(zhuǎn)換錯誤?使用 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 應(yīng)用程序設(shè)計——將文檔從 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="qwawimqqmiuu" 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>
                            主站蜘蛛池模板: 国产精品久久久久久一区二区三区 | 在线观看www | 久久精品亚洲精品国产欧美 | 欧美最猛黑人xxxx黑人 | 欧美精品啪啪 | 国产精品视频导航 | 91精品一区二区三区久久久久 | 日韩欧美中文 | av免费网站在线观看 | 亚洲毛片网站 | 国产精品久久国产精品 | 久久久精选 | 欧美日韩在线精品 | 中文字幕国产精品 | 精品久久国产老人久久综合 | 国产精品高清一区二区三区 | 日韩一区二区在线播放 | 在线视频一区二区三区 | 北条麻妃国产九九九精品小说 | 精品免费国产一区二区三区四区介绍 | 狠狠亚洲| 日韩精品一二三区 | 隔壁老王国产在线精品 | 欧美三级不卡 | 精品国产免费一区二区三区演员表 | 玖玖视频网| 狠狠色综合久久丁香婷婷 | 亚洲一区中文字幕在线观看 | 色婷婷久久 | 亚洲成人一区二区 | 精品国产一区一区二区三亚瑟 | 久久久久久国产精品久久 | 日韩在线欧美 | 天天亚洲| 欧美 日韩 在线播放 | 国产精品视频久久 | 国产黄色在线 | 99日韩| 精品国产伦一区二区三区观看说明 | 亚洲一区二区三区四区av | 成人免费一区二区三区视频网站 |