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

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

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

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

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

        MySQL 中的分隔符

        Delimiters in MySQL(MySQL 中的分隔符)
          • <legend id='tr5rs'><style id='tr5rs'><dir id='tr5rs'><q id='tr5rs'></q></dir></style></legend>
            <i id='tr5rs'><tr id='tr5rs'><dt id='tr5rs'><q id='tr5rs'><span id='tr5rs'><b id='tr5rs'><form id='tr5rs'><ins id='tr5rs'></ins><ul id='tr5rs'></ul><sub id='tr5rs'></sub></form><legend id='tr5rs'></legend><bdo id='tr5rs'><pre id='tr5rs'><center id='tr5rs'></center></pre></bdo></b><th id='tr5rs'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tr5rs'><tfoot id='tr5rs'></tfoot><dl id='tr5rs'><fieldset id='tr5rs'></fieldset></dl></div>

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

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

                  <tfoot id='tr5rs'></tfoot>

                    <tbody id='tr5rs'></tbody>
                • 本文介紹了MySQL 中的分隔符的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我經常看到人們使用分隔符.我試圖自己找出什么是分隔符以及它們的目的是什么.經過 20 分鐘的谷歌搜索,我找不到讓我滿意的答案.所以,我現在的問題是:什么是分隔符,我應該在什么時候使用它們?

                  I often see people are using Delimiters. I tried myself to find out what are delimiters and what is their purpose. After 20 minutes of googling, I was not able to find an answer which satisfies me. So, my question is now: What are delimiters and when should I use them?

                  推薦答案

                  除默認 ; 之外的定界符通常用于定義函數、存儲過程和觸發器,其中必須定義多個語句.您定義了一個不同的分隔符,如 $$,它用于定義整個過程的結束,但在其中,各個語句都以 ; 終止.這樣,當代碼在mysql客戶端中運行時,客戶端可以知道整個過程在哪里結束并作為一個單元執行,而不是執行內部的單個語句.

                  Delimiters other than the default ; are typically used when defining functions, stored procedures, and triggers wherein you must define multiple statements. You define a different delimiter like $$ which is used to define the end of the entire procedure, but inside it, individual statements are each terminated by ;. That way, when the code is run in the mysql client, the client can tell where the entire procedure ends and execute it as a unit rather than executing the individual statements inside.

                  請注意,DELIMITER 關鍵字只是命令行 mysql 客戶端(和一些其他客戶端)的函數,而不是常規 MySQL 語言功能.如果您嘗試通過編程語言 API 將其傳遞給 MySQL,它將無法工作.其他一些客戶端(如 PHPMyAdmin)有其他方法來指定非默認分隔符.

                  Note that the DELIMITER keyword is a function of the command line mysql client (and some other clients) only and not a regular MySQL language feature. It won't work if you tried to pass it through a programming language API to MySQL. Some other clients like PHPMyAdmin have other methods to specify a non-default delimiter.

                  DELIMITER $$
                  /* This is a complete statement, not part of the procedure, so use the custom delimiter $$ */
                  DROP PROCEDURE my_procedure$$
                  
                  /* Now start the procedure code */
                  CREATE PROCEDURE my_procedure ()
                  BEGIN    
                    /* Inside the procedure, individual statements terminate with ; */
                    CREATE TABLE tablea (
                       col1 INT,
                       col2 INT
                    );
                  
                    INSERT INTO tablea
                      SELECT * FROM table1;
                  
                    CREATE TABLE tableb (
                       col1 INT,
                       col2 INT
                    );
                    INSERT INTO tableb
                      SELECT * FROM table2;
                    
                  /* whole procedure ends with the custom delimiter */
                  END$$
                  
                  /* Finally, reset the delimiter to the default ; */
                  DELIMITER ;
                  

                  嘗試在不支持它的客戶端上使用 DELIMITER 會導致它被發送到服務器,服務器會報告語法錯誤.例如,使用 PHP 和 MySQLi:

                  Attempting to use DELIMITER with a client that doesn't support it will cause it to be sent to the server, which will report a syntax error. For example, using PHP and MySQLi:

                  $mysqli = new mysqli('localhost', 'user', 'pass', 'test');
                  $result = $mysqli->query('DELIMITER $$');
                  echo $mysqli->error;
                  

                  錯誤:

                  您的 SQL 語法有錯誤;檢查對應的手冊到您的 MySQL 服務器版本,以便在第 1 行的DELIMITER $$"附近使用正確的語法

                  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 'DELIMITER $$' at line 1

                  這篇關于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 數據幀讀取?)

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

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

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

                          • <small id='zfI4t'></small><noframes id='zfI4t'>

                          • <tfoot id='zfI4t'></tfoot>
                            主站蜘蛛池模板: 欧美精品影院 | 7777在线| 麻豆视频国产在线观看 | 99re视频这里只有精品 | 天天干夜夜操 | 亚洲品质自拍视频网站 | 一区二区伦理电影 | 亚洲欧美日韩在线不卡 | 中文在线一区二区 | 九色av| 草草在线观看 | 亚洲一区二区成人 | 亚洲精品九九 | 夜夜爽99久久国产综合精品女不卡 | 久久精品欧美一区二区三区麻豆 | 一区二区不卡 | 在线永久看片免费的视频 | 色999日韩| 国产精品视频久久久 | 国产精品美女久久久久 | 午夜国产羞羞视频免费网站 | 日韩亚洲一区二区 | 国产1区2区在线观看 | 欧美一区二区三区四区视频 | 国产一级电影在线观看 | 欧美亚洲国产精品 | 天堂久| 国产伦精品一区二区三区精品视频 | 365夜爽爽欧美性午夜免费视频 | 久久精品视频在线观看 | 视频一区中文字幕 | 91成人精品 | 日韩一区二区三区精品 | 免费成人国产 | 91精品一区二区三区久久久久久 | 国产精品1区2区3区 男女啪啪高潮无遮挡免费动态 | av在线免费观看网站 | 麻豆精品一区二区三区在线观看 | 国产三级国产精品 | 国产夜恋视频在线观看 | 精品国产一区二区国模嫣然 |