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

<legend id='2Nd6y'><style id='2Nd6y'><dir id='2Nd6y'><q id='2Nd6y'></q></dir></style></legend>

    <small id='2Nd6y'></small><noframes id='2Nd6y'>

    • <bdo id='2Nd6y'></bdo><ul id='2Nd6y'></ul>

      <i id='2Nd6y'><tr id='2Nd6y'><dt id='2Nd6y'><q id='2Nd6y'><span id='2Nd6y'><b id='2Nd6y'><form id='2Nd6y'><ins id='2Nd6y'></ins><ul id='2Nd6y'></ul><sub id='2Nd6y'></sub></form><legend id='2Nd6y'></legend><bdo id='2Nd6y'><pre id='2Nd6y'><center id='2Nd6y'></center></pre></bdo></b><th id='2Nd6y'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='2Nd6y'><tfoot id='2Nd6y'></tfoot><dl id='2Nd6y'><fieldset id='2Nd6y'></fieldset></dl></div>

      <tfoot id='2Nd6y'></tfoot>
    1. 如何在 MySQL 中轉義特殊字符?

      How do I escape special characters in MySQL?(如何在 MySQL 中轉義特殊字符?)
        <tbody id='3GqSE'></tbody>
        <bdo id='3GqSE'></bdo><ul id='3GqSE'></ul>

          <tfoot id='3GqSE'></tfoot>
            • <small id='3GqSE'></small><noframes id='3GqSE'>

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

              1. 本文介紹了如何在 MySQL 中轉義特殊字符?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                例如:

                select * from tablename where fields like "%string "hi" %";

                錯誤:

                <塊引用>

                您的 SQL 語法有錯誤;檢查與您的 MySQL 服務器版本相對應的手冊,了解在第 1 行的 'hi" "' 附近使用的正確語法

                如何構建此查詢?

                解決方案

                此答案中提供的信息可能會導致不安全的編程實踐.

                此處提供的信息高度依賴于 MySQL 配置,包括(但不限于)程序版本、數據庫客戶端和使用的字符編碼.

                見http://dev.mysql.com/doc/refman/5.0/en/string-literals.html

                <前>MySQL 識別以下轉義序列.\0 一個 ASCII NUL (0x00) 字符.\' 單引號('")字符.\" 雙引號 (""") 字符.\b 退格字符.\n 換行(換行)字符.\r 回車符.\t 一個制表符.\Z ASCII 26 (Control-Z).請參閱表格后面的注釋.\\ 反斜杠(\")字符.\% 一個角色.請參閱表格后面的注釋.\_ 一個角色.請參閱表格后面的注釋.

                所以你需要

                select * from tablename where fields like "%string \"hi\";%";

                盡管 Bill Karwin 在下面說明,對字符串分隔符使用雙引號不是標準 SQL,因此使用單引號是一種很好的做法.這簡化了事情:

                select * from tablename where '%string hi"之類的字段%';

                For example:

                select * from tablename where fields like "%string "hi"  %";
                

                Error:

                You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hi" "' at line 1

                How do I build this query?

                解決方案

                The information provided in this answer can lead to insecure programming practices.

                The information provided here depends highly on MySQL configuration, including (but not limited to) the program version, the database client and character-encoding used.

                See http://dev.mysql.com/doc/refman/5.0/en/string-literals.html

                MySQL recognizes the following escape sequences.
                \0     An ASCII NUL (0x00) character.
                \'     A single quote ("'") character.
                \"     A double quote (""") character.
                \b     A backspace character.
                \n     A newline (linefeed) character.
                \r     A carriage return character.
                \t     A tab character.
                \Z     ASCII 26 (Control-Z). See note following the table.
                \\     A backslash ("\") character.
                \%     A "%" character. See note following the table.
                \_     A "_" character. See note following the table.
                

                So you need

                select * from tablename where fields like "%string \"hi\" %";
                

                Although as Bill Karwin notes below, using double quotes for string delimiters isn't standard SQL, so it's good practice to use single quotes. This simplifies things:

                select * from tablename where fields like '%string "hi" %';
                

                這篇關于如何在 MySQL 中轉義特殊字符?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 數據幀讀取?)
              2. <small id='SDov7'></small><noframes id='SDov7'>

                  <i id='SDov7'><tr id='SDov7'><dt id='SDov7'><q id='SDov7'><span id='SDov7'><b id='SDov7'><form id='SDov7'><ins id='SDov7'></ins><ul id='SDov7'></ul><sub id='SDov7'></sub></form><legend id='SDov7'></legend><bdo id='SDov7'><pre id='SDov7'><center id='SDov7'></center></pre></bdo></b><th id='SDov7'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='SDov7'><tfoot id='SDov7'></tfoot><dl id='SDov7'><fieldset id='SDov7'></fieldset></dl></div>
                • <tfoot id='SDov7'></tfoot>

                      1. <legend id='SDov7'><style id='SDov7'><dir id='SDov7'><q id='SDov7'></q></dir></style></legend>
                          <bdo id='SDov7'></bdo><ul id='SDov7'></ul>
                            <tbody id='SDov7'></tbody>

                        • 主站蜘蛛池模板: 欧美日韩精品在线免费观看 | 国产成人免费视频网站高清观看视频 | 老司机午夜性大片 | 成人在线观看网站 | 久久成人亚洲 | 日本一区二区三区四区 | 欧美日韩在线综合 | 激情a| 国产美女视频黄 | 日韩激情网 | 中文字幕日本一区二区 | 久久这里只有精品首页 | 在线视频日韩精品 | 人成精品| 欧美久久久久久 | 99精品免费 | 午夜电影网站 | 91在线中文字幕 | 国产午夜精品一区二区三区嫩草 | 精品一区二区三区在线播放 | 一区二区三区免费在线观看 | 人人射人人插 | 成人在线中文字幕 | 日本在线视频中文字幕 | 97影院2 | 日本一区二区视频 | 亚洲女人天堂成人av在线 | 一级毛片黄片 | 精品久久久久久久人人人人传媒 | 黄色小视频大全 | 黄色操视频 | 久久精品影视 | 国产精品亚洲精品 | 精品一区二区电影 | 婷婷久久综合 | 天堂视频中文在线 | 人人爽人人爽 | 一区二区三区四区在线 | 综合成人在线 | 99亚洲精品 | 欧美激情国产日韩精品一区18 |