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

        <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="qwawimqqmiuu" 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="qwawimqqmiuu" 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="qwawimqqmiuu" 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>

                            主站蜘蛛池模板: 黄色毛片黄色毛片 | 国产高清久久久 | 欧美日韩精品一区二区三区四区 | 国产日韩欧美在线一区 | 一区二区三区中文字幕 | 一级毛片免费视频观看 | 成人黄在线观看 | 日韩免费视频 | 中文字幕av在线播放 | 欧美电影在线观看网站 | 丁香婷婷在线视频 | 亚洲精品久久久一区二区三区 | 久久久久久女 | 综合色久| 成人精品国产一区二区4080 | 国产一区二区精品 | 中文字幕精品一区二区三区精品 | 一区二区三区中文字幕 | 成人区一区二区三区 | 蜜桃官网| 国内激情av片| 免费av观看| 国产精品视频网站 | 青青草这里只有精品 | 亚洲天天 | 韩国精品在线 | 亚洲欧美在线一区 | 国产做爰 | 精品一区精品二区 | 欧美日韩一区二区在线观看 | 99reav | 成人福利片 | 夜夜骑天天干 | 91麻豆精品国产91久久久久久 | 久久久成人网 | 夜夜爽99久久国产综合精品女不卡 | 理论片午午伦夜理片影院 | 天堂网色 | 欧美伦理一区 | 一级大片免费 | 亚洲精久|