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

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

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

        • <bdo id='oMpFU'></bdo><ul id='oMpFU'></ul>

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

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

        使用 xquery 轉(zhuǎn)換為 html?

        Convert to html using xquery?(使用 xquery 轉(zhuǎn)換為 html?)

          • <bdo id='ixZNG'></bdo><ul id='ixZNG'></ul>

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

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

                    <tbody id='ixZNG'></tbody>
                  <tfoot id='ixZNG'></tfoot>
                  本文介紹了使用 xquery 轉(zhuǎn)換為 html?的處理方法,對大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時(shí)送ChatGPT賬號..

                  我有以下數(shù)據(jù)庫電子郵件的 T-Sql.

                  I have the following T-Sql for database email.

                  -- create proc TableToHtml @table varchar(max) as
                  declare @table varchar(max) = '(select 1 a, ''one'' b union all select 2, ''two'') t '
                  declare @sql varchar(max) = '
                      declare @xml xml = (
                          select * from ' + @table + ' 
                          for xml path(''tr''), root(''table'')
                      ); 
                      select @xml'
                  declare @tmp table (x xml)
                  insert into @tmp exec(@sql) 
                  declare @x xml = (select x from @tmp)
                  select @x 
                  

                  然后它返回

                  <table>
                    <tr>
                      <a>1</a>
                      <b>one</b>
                    </tr>
                    <tr>
                      <a>2</a>
                      <b>two</b>
                    </tr>
                  </table>
                  

                  是否可以編寫 xquery 讓它返回以下 html?

                  Is it possible to write the xquery to let it returns the following html?

                  <table>
                    <tr>
                      <th>a</th>
                      <th>b</th>
                    </tr>
                    <tr>
                      <td>1</td>
                      <td>one</td>
                    </tr>
                    <tr>
                      <td>2</td>
                      <td>two</td>
                    </tr>
                  </table>
                  

                  推薦答案

                  我想出了一個(gè)更少黑客攻擊的方案.唯一的問題是如果值為空,它將創(chuàng)建 而不是 .將電子郵件發(fā)送到某些舊 Outlook 客戶端時(shí)會(huì)導(dǎo)致一些布局問題.

                  I figured out a less hacking one. The only problem is it will create <td /> instead of <td></td> if the value is null. It will cause some layout issue when the email is sent to some old Outlook clients.

                  declare @table varchar(max) = '(select 1 a, ''one'' b union all select 2, ''two'') t '
                  declare @sql varchar(max) = '
                      declare @xml xml = (
                          select * from ' + @table + ' 
                          for xml path(''tr''), root(''table'')
                      ); 
                      select @xml'
                  declare @tmp table (x xml)
                  insert into @tmp exec(@sql) 
                  declare @x xml = (select x from @tmp)
                  select @x.query('<body>
                  <table>
                    <tr>
                      {for $c in /table/tr[1]/* return element th { local-name($c) } }
                    </tr>
                    {
                      for $r in /table/* 
                      return element tr { for $c in $r/* return element td { data($c) } } 
                    }
                  </table>
                  </body>')
                  

                  這篇關(guān)于使用 xquery 轉(zhuǎn)換為 html?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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()?(為什么會(huì)出現(xiàn)“數(shù)據(jù)類型轉(zhuǎn)換錯(cuò)誤?使用 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è)計(jì)——將文檔從 SQL Server 移動(dòng)到文件存儲(chǔ))
                2. <small id='OUrrk'></small><noframes id='OUrrk'>

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

                          <bdo id='OUrrk'></bdo><ul id='OUrrk'></ul>

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

                            <tbody id='OUrrk'></tbody>
                          <tfoot id='OUrrk'></tfoot>
                          • 主站蜘蛛池模板: 无痕胶_可移胶_无痕双面胶带_可移无痕胶厂家-东莞凯峰 | 西装定制/做厂家/公司_西装订做/制价格/费用-北京圣达信西装 | 重庆私家花园设计-别墅花园-庭院-景观设计-重庆彩木园林建设有限公司 | app开发|app开发公司|小程序开发|物联网开发||北京网站制作|--前潮网络 | 台湾HIWIN上银直线模组|导轨滑块|TBI滚珠丝杆丝杠-深圳汉工 | 四川实木门_成都实木门 - 蓬溪聚成门业有限公司 | _网名词典_网名大全_qq网名_情侣网名_个性网名 | PC构件-PC预制构件-构件设计-建筑预制构件-PC构件厂-锦萧新材料科技(浙江)股份有限公司 | 仿清水混凝土_清水混凝土装修_施工_修饰_保护剂_修补_清水混凝土修复-德州忠岭建筑装饰工程 | LNG鹤管_内浮盘价格,上装鹤管,装车撬厂家-连云港赛威特机械 | 拖链电缆_柔性电缆_伺服电缆_坦克链电缆-深圳市顺电工业电缆有限公司 | 注浆压力变送器-高温熔体传感器-矿用压力传感器|ZHYQ朝辉 | 办公室装修_上海办公室设计装修_时尚办公新主张-后街印象 | 中高频感应加热设备|高频淬火设备|超音频感应加热电源|不锈钢管光亮退火机|真空管烤消设备 - 郑州蓝硕工业炉设备有限公司 | 西门子伺服电机维修,西门子电源模块维修,西门子驱动模块维修-上海渠利 | 北京百度网站优化|北京网站建设公司-百谷网络科技 | 防爆电机生产厂家,YBK3电动机,YBX3系列防爆电机,YBX4节防爆电机--河南省南洋防爆电机有限公司 | Copeland/谷轮压缩机,谷轮半封闭压缩机,谷轮涡旋压缩机,型号规格,技术参数,尺寸图片,价格经销商 CTP磁天平|小电容测量仪|阴阳极极化_双液系沸点测定仪|dsj电渗实验装置-南京桑力电子设备厂 | 杭州代理记账多少钱-注册公司代办-公司注销流程及费用-杭州福道财务管理咨询有限公司 | 房间温控器|LonWorks|海思 | 双工位钻铣攻牙机-转换工作台钻攻中心-钻铣攻牙机一体机-浙江利硕自动化设备有限公司 | ERP企业管理系统永久免费版_在线ERP系统_OA办公_云版软件官网 | 板框压滤机-隔膜压滤机配件生产厂家-陕西华星佳洋装备制造有限公司 | 冷却塔风机厂家_静音冷却塔风机_冷却塔电机维修更换维修-广东特菱节能空调设备有限公司 | 广州各区危化证办理_危险化学品经营许可证代办 | 技德应用| 手持式浮游菌采样器-全排二级生物安全柜-浙江孚夏医疗科技有限公司 | 针焰试验仪,灼热丝试验仪,漏电起痕试验仪,水平垂直燃烧试验仪 - 苏州亚诺天下仪器有限公司 | 层流手术室净化装修-检验科ICU改造施工-华锐净化工程-特殊科室建设厂家 | 净化板-洁净板-净化板价格-净化板生产厂家-山东鸿星新材料科技股份有限公司 | 游泳池设备安装工程_恒温泳池设备_儿童游泳池设备厂家_游泳池水处理设备-东莞市君达泳池设备有限公司 | 柔性输送线|柔性链板|齿形链-上海赫勒输送设备有限公司首页[输送机] | 气密性检测仪_气密性检测设备_防水测试仪_密封测试仪-岳信仪器 | 洛阳防爆合格证办理-洛阳防爆认证机构-洛阳申请国家防爆合格证-洛阳本安防爆认证代办-洛阳沪南抚防爆电气技术服务有限公司 | 牛奶检测仪-乳成分分析仪-北京海谊 | 玉米深加工设备-玉米深加工机械-新型玉米工机械生产厂家-河南粮院机械制造有限公司 | 胶水,胶粘剂,AB胶,环氧胶,UV胶水,高温胶,快干胶,密封胶,结构胶,电子胶,厌氧胶,高温胶水,电子胶水-东莞聚力-聚厉胶粘 | 污水提升器,污水提升泵,地下室排水,增压泵,雨水泵,智能供排水控制器-上海智流泵业有限公司 | 小型手持气象站-空气负氧离子监测站-多要素微气象传感器-山东天合环境科技有限公司 | 技德应用| 东莞韩创-专业绝缘骨架|马达塑胶零件|塑胶电机配件|塑封电机骨架厂家 |