久久久久久久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é)點屬性值選擇 XML 節(jié)點

        SQL Select XML Node based on sibling node attribute value(SQL 根據(jù)兄弟節(jié)點屬性值選擇 XML 節(jié)點)
        • <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é)點屬性值選擇 XML 節(jié)點的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(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é)點值,其中Findings/Finding/Selected Value = "1"
                  2. 選擇Findings/Finding/NoteText 的節(jié)點值,其中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é)點屬性值選擇 XML 節(jié)點的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 實例使用的空間嗎?) - IT屋-程序員軟件開發(fā)
                  How to create a login to a SQL Server instance?(如何創(chuàng)建對 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()?(為什么會出現(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>
                            主站蜘蛛池模板: 久久精品| 黄色国产在线播放 | 精品自拍视频 | 国产精品69毛片高清亚洲 | 国产在线高清 | 国产一级特黄真人毛片 | 在线播放中文字幕 | 欧美黄色网络 | 日日操日日干 | 国产精品欧美一区二区三区 | 国产精久久久久久 | 欧美在线激情 | 一区二区三区在线免费 | 瑞克和莫蒂第五季在线观看 | 日韩高清中文字幕 | 国内精品久久久久久 | 日韩 欧美 二区 | 久久国产成人 | 一区二区视频在线观看 | 亚洲一区二区三区国产 | 亚洲一区国产精品 | 亚洲一区二区三区四区五区中文 | 黄色一级大片在线观看 | 亚洲成人精品久久久 | 欧美激情综合 | 三级免费av | 亚洲成人一区 | av在线播放免费 | 久草影视在线 | 久久狠狠 | 国产视频在线观看一区二区三区 | 国产一区二区影院 | 欧美a级成人淫片免费看 | 亚洲精品在线免费播放 | 日韩av第一页 | 亚洲日韩中文字幕一区 | 青青久草| 少妇一区二区三区 | 欧美日日 | 日韩国产欧美 | 亚洲欧洲精品成人久久奇米网 |