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

        <bdo id='OswiM'></bdo><ul id='OswiM'></ul>
      <tfoot id='OswiM'></tfoot>

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

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

      1. ant sql 插入語句在“--"字符串上失敗.解決方法

        ant sql insert statement fails on #39;--#39; strings. workaround?(ant sql 插入語句在“--字符串上失敗.解決方法?)
        <tfoot id='QIL8Y'></tfoot>

                <tbody id='QIL8Y'></tbody>

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

                <i id='QIL8Y'><tr id='QIL8Y'><dt id='QIL8Y'><q id='QIL8Y'><span id='QIL8Y'><b id='QIL8Y'><form id='QIL8Y'><ins id='QIL8Y'></ins><ul id='QIL8Y'></ul><sub id='QIL8Y'></sub></form><legend id='QIL8Y'></legend><bdo id='QIL8Y'><pre id='QIL8Y'><center id='QIL8Y'></center></pre></bdo></b><th id='QIL8Y'></th></span></q></dt></tr></i><div class="esmqi2m" id='QIL8Y'><tfoot id='QIL8Y'></tfoot><dl id='QIL8Y'><fieldset id='QIL8Y'></fieldset></dl></div>
                <legend id='QIL8Y'><style id='QIL8Y'><dir id='QIL8Y'><q id='QIL8Y'></q></dir></style></legend>
                  <bdo id='QIL8Y'></bdo><ul id='QIL8Y'></ul>
                • 本文介紹了ant sql 插入語句在“--"字符串上失敗.解決方法?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  背景

                  我們正在更改我們的安裝腳本,以使用 ant 的sql"任務和 jdbc,而不是專有的 sql 客戶端 sqlplus (oracle) 和 osql (msft).

                  We're changing our install scripts to use ant's "sql" task and jdbc rather than proprietary sql clients sqlplus (oracle) and osql (msft).

                  更新:添加了更多上下文.我們的基礎數據"(種子數據)由包含供應商中立"(即在 oracle 和 mssql 中均可使用)sql 語句的 .sql 文件集合組成.

                  Updated: added more context. Our "base data" (seed data) consists of a collection of .sql files containing "vendor-neutral"(i.e. works both in oracle and mssql) sql statements.

                  問題

                  腳本運行良好,只有一個例外:

                  The scripts run fine, with one exception:

                  此 sql 在 Oracle 中失敗.具體來說,某些東西(ant 或 jdbc 驅動程序)將破折號/連字符視為注釋的開頭"——即使它們嵌入在字符串中.請注意,同樣的 sql 也適用于 ant/sql 和微軟的 jdbc 驅動程序.

                  This sql fails in Oracle. Specifically, something (ant or jdbc driver) treats the dashes/hyphens as "beginning of a comment"--even though they are embedded in a string. Note that the same sql works fine with ant/sql and microsoft's jdbc driver.

                  INSERT INTO email_client (email_client_id,generated_reply_text) VALUES(100002,'----- Original Message -----');
                  

                  相關錯誤

                  這個ant bug 似乎可以識別問題.由于它仍然開放(8 年后),我不希望很快得到修復.但是,因為問題只出現在oracle中,所以可能出在驅動上.

                  This ant bug appears to identify the problem. As it's still open (after 8 years), I'm not hoping for a fix soon. However, because the problem appears only in oracle, it may lie with the driver.

                  oracle 驅動:jdbc 瘦驅動,版本 10.2.0.1.0

                  The oracle driver: jdbc thin driver, version 10.2.0.1.0

                  問題

                  有沒有人有在 mssql 和 oracle 中都有效的解決方法?(例如,更改違規行以定義轉義字符?我在插入"sql92 語法中沒有看到轉義")

                  Does anyone have a workaround which works in both mssql and oracle? (e.g. changing the offending lines to define an escape character? I don't see an 'escape' on the 'insert' sql92 syntax)

                  謝謝

                  推薦答案

                  在查看SQLExec"源并打開詳細日志記錄后,我找到了一個解決方法:

                  After viewing the 'SQLExec' source and turning on verbose logging, I found a workaround:

                  解決方法

                  如果 sql 語句包含包含--"的字符串,則將分隔符(分號)放在下一行.

                  這失敗了

                  INSERT INTO email_client (email_client_id,generated_reply_text) VALUES(100002,'----- Original Message -----');
                  

                  成功

                  注意分號在單獨的一行

                  INSERT INTO email_client (email_client_id,generated_reply_text) VALUES(100002,'----- Original Message -----')
                  ;
                  

                  詳情

                  打開verbose logging,我看到Ant遇到違規的sql語句時,居然一次把三個sql語句傳入jdbc驅動.有問題的語句、下一個語句(還包括嵌入的--")和后續語句(不包括嵌入的--").

                  Turning on verbose logging, I saw that when Ant came across the offending sql statement, it actually passed three sql statements in at once to the jdbc driver. The offending statement, the next statement (which also included an embedded '--'), and the subsequent statement (which did not include an embedded '--').

                  我快速瀏覽了 Ant 代碼,沒有發現任何明顯錯誤.由于我不打算修補 Ant,所以我尋找了一種解決方法.

                  I gave the Ant code a quick glance and didn't see any obvious errors. Since I wasn't planning to patch Ant, I looked for a workaround.

                  調整后我發現如果我只是將分隔符(分號)移動到帶有嵌入--"的語句的下一行,腳本會成功執行.

                  Tweaking with it I found that if I simply moved the delimiter (semicolon) to the next line for the statements with embedded '--', the scripts executed successfully.

                  感謝大家的參與

                  這篇關于ant sql 插入語句在“--"字符串上失敗.解決方法?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數根據 N 個先前值來決定接下來的 N 個行)
                  reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達式的結果;條款?)
                  Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數的 ignore 選項是忽略整個事務還是只是有問題的行?) - IT屋-程序員軟件開發技
                  Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時出錯,使用 for 循環數組)
                  pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調用 o23.load 時發生錯誤 沒有合適的驅動程序)
                  How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數據庫表作為 Spark 數據幀讀取?)
                  <i id='waYFo'><tr id='waYFo'><dt id='waYFo'><q id='waYFo'><span id='waYFo'><b id='waYFo'><form id='waYFo'><ins id='waYFo'></ins><ul id='waYFo'></ul><sub id='waYFo'></sub></form><legend id='waYFo'></legend><bdo id='waYFo'><pre id='waYFo'><center id='waYFo'></center></pre></bdo></b><th id='waYFo'></th></span></q></dt></tr></i><div class="ey0o2cw" id='waYFo'><tfoot id='waYFo'></tfoot><dl id='waYFo'><fieldset id='waYFo'></fieldset></dl></div>
                  • <small id='waYFo'></small><noframes id='waYFo'>

                      <tbody id='waYFo'></tbody>
                    <tfoot id='waYFo'></tfoot>

                        <legend id='waYFo'><style id='waYFo'><dir id='waYFo'><q id='waYFo'></q></dir></style></legend>
                          <bdo id='waYFo'></bdo><ul id='waYFo'></ul>

                            主站蜘蛛池模板: 九爱图纸|机械CAD图纸下载交流中心| 济南玻璃安装_济南玻璃门_济南感应门_济南玻璃隔断_济南玻璃门维修_济南镜片安装_济南肯德基门_济南高隔间-济南凯轩鹏宇玻璃有限公司 | 双相钢_双相不锈钢_双相钢圆钢棒_双相不锈钢报价「海新双相钢」 双能x射线骨密度检测仪_dxa骨密度仪_双能x线骨密度仪_品牌厂家【品源医疗】 | 手表腕表维修保养鉴定售后服务中心网点 - 名表维修保养 | 集装袋吨袋生产厂家-噸袋廠傢-塑料编织袋-纸塑复合袋-二手吨袋-太空袋-曹县建烨包装 | 化妆品加工厂-化妆品加工-化妆品代加工-面膜加工-广东欧泉生化科技有限公司 | 硫化罐-电加热蒸汽硫化罐生产厂家-山东鑫泰鑫智能装备有限公司 | 岩石钻裂机-液压凿岩机-劈裂机-挖改钻_湖南烈岩科技有限公司 | 西安文都考研官网_西安考研辅导班_考研培训机构_西安在职考研培训 | 济南品牌设计-济南品牌策划-即合品牌策划设计-山东即合官网 | 【直乐】河北石家庄脊柱侧弯医院_治疗椎间盘突出哪家医院好_骨科脊柱外科专业医院_治疗抽动症/关节病骨伤权威医院|排行-直乐矫形中医医院 | 快干水泥|桥梁伸缩缝止水胶|伸缩缝装置生产厂家-广东广航交通科技有限公司 | 大型果蔬切片机-水果冬瓜削皮机-洗菜机切菜机-肇庆市凤翔餐饮设备有限公司 | NM-02立式吸污机_ZHCS-02软轴刷_二合一吸刷软轴刷-厦门地坤科技有限公司 | 能耗监测系统-节能监测系统-能源管理系统-三水智能化 | 法钢特种钢材(上海)有限公司 - 耐磨钢板、高强度钢板销售加工 阀门智能定位器_电液动执行器_气动执行机构-赫尔法流体技术(北京)有限公司 | 电动车头盔厂家_赠品头盔_安全帽批发_山东摩托车头盔—临沂承福头盔 | 碳化硅,氮化硅,冰晶石,绢云母,氟化铝,白刚玉,棕刚玉,石墨,铝粉,铁粉,金属硅粉,金属铝粉,氧化铝粉,硅微粉,蓝晶石,红柱石,莫来石,粉煤灰,三聚磷酸钠,六偏磷酸钠,硫酸镁-皓泉新材料 | 美侍宠物-专注宠物狗及宠物猫训练|喂养|医疗|繁育|品种|价格 | 注塑机-压铸机-塑料注塑机-卧式注塑机-高速注塑机-单缸注塑机厂家-广东联升精密智能装备科技有限公司 | 自动化改造_智虎机器人_灌装机_贴标机-上海圣起包装机械 | 镀锌角钢_槽钢_扁钢_圆钢_方矩管厂家_镀锌花纹板-海邦钢铁(天津)有限公司 | 大鼠骨髓内皮祖细胞-小鼠神经元-无锡欣润生物科技有限公司 | 奇酷教育-Python培训|UI培训|WEB大前端培训|Unity3D培训|HTML5培训|人工智能培训|JAVA开发的教育品牌 | 【北京写字楼出租_写字楼租赁_办公室出租网/出售】-远行地产官网 | PCB厂|线路板厂|深圳线路板厂|软硬结合板厂|电路板生产厂家|线路板|深圳电路板厂家|铝基板厂家|深联电路-专业生产PCB研发制造 | 重庆小面培训_重庆小面技术培训学习班哪家好【终身免费复学】 | 光泽度计_测量显微镜_苏州压力仪_苏州扭力板手维修-苏州日升精密仪器有限公司 | 圆形振动筛_圆筛_旋振筛_三次元振动筛-河南新乡德诚生产厂家 | 纸塑分离机-纸塑分离清洗机设备-压力筛-碎浆机厂家金双联环保 | 济南ISO9000认证咨询代理公司,ISO9001认证,CMA实验室认证,ISO/TS16949认证,服务体系认证,资产管理体系认证,SC食品生产许可证- 济南创远企业管理咨询有限公司 郑州电线电缆厂家-防火|低压|低烟无卤电缆-河南明星电缆 | 众品家具网-家具品牌招商_家具代理加盟_家具门户的首选网络媒体。 | 全自动包装秤_全自动上袋机_全自动套袋机_高位码垛机_全自动包装码垛系统生产线-三维汉界机器(山东)股份有限公司 | 宏源科技-房地产售楼系统|线上开盘系统|售楼管理系统|线上开盘软件 | loft装修,上海嘉定酒店式公寓装修公司—曼城装饰 | 金属回收_废铜废铁回收_边角料回收_废不锈钢回收_废旧电缆线回收-广东益夫金属回收公司 | 喷砂机厂家_自动除锈抛丸机价格-成都泰盛吉自动化喷砂设备 | 【法利莱住人集装箱厂家】—活动集装箱房,集装箱租赁_大品牌,更放心 | LOGO设计_品牌设计_VI设计 - 特创易 | 滑板场地施工_极限运动场地设计_滑板公园建造_盐城天人极限运动场地建设有限公司 | 玻璃钢格栅盖板|玻璃钢盖板|玻璃钢格栅板|树篦子-长沙川皖玻璃钢制品有限公司 |