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

<legend id='5dR8S'><style id='5dR8S'><dir id='5dR8S'><q id='5dR8S'></q></dir></style></legend>

  • <small id='5dR8S'></small><noframes id='5dR8S'>

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

        • <bdo id='5dR8S'></bdo><ul id='5dR8S'></ul>
        <tfoot id='5dR8S'></tfoot>
      1. MySQL:大 VARCHAR 與文本?

        MySQL: Large VARCHAR vs. TEXT?(MySQL:大 VARCHAR 與文本?)

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

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

        2. <legend id='lqFHR'><style id='lqFHR'><dir id='lqFHR'><q id='lqFHR'></q></dir></style></legend>
              <tbody id='lqFHR'></tbody>
                <tfoot id='lqFHR'></tfoot>
                  <bdo id='lqFHR'></bdo><ul id='lqFHR'></ul>
                  本文介紹了MySQL:大 VARCHAR 與文本?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我在 MySQL 中有一個(gè)消息表,用于記錄用戶之間的消息.除了典型的 id 和消息類型(所有整數(shù)類型),我需要將實(shí)際的消息文本保存為 VARCHAR 或 TEXT.我將前端限制設(shè)置為 3000 個(gè)字符,這意味著消息將永遠(yuǎn)不會(huì)插入到數(shù)據(jù)庫中超過此長(zhǎng)度.

                  I've got a messages table in MySQL which records messages between users. Apart from the typical ids and message types (all integer types) I need to save the actual message text as either VARCHAR or TEXT. I'm setting a front-end limit of 3000 characters which means the messages would never be inserted into the db as longer than this.

                  使用 VARCHAR(3000) 或 TEXT 是否有理由?僅僅編寫 VARCHAR(3000) 有點(diǎn)違反直覺.我已經(jīng)閱讀過 Stack Overflow 上的其他類似帖子,但如果能獲得特定于此類常見消息存儲(chǔ)的視圖會(huì)很好.

                  Is there a rationale for going with either VARCHAR(3000) or TEXT? There's something about just writing VARCHAR(3000) that feels somewhat counter-intuitive. I've been through other similar posts on Stack Overflow but would be good to get views specific to this type of common message storing.

                  推薦答案

                  • TEXTBLOB 可以存儲(chǔ)在表外,而表只有一個(gè)指向?qū)嶋H存儲(chǔ)位置的指針.它的存儲(chǔ)位置取決于很多因素,例如數(shù)據(jù)大小、列大小、row_format 和 MySQL 版本.

                    • TEXT and BLOB may by stored off the table with the table just having a pointer to the location of the actual storage. Where it is stored depends on lots of things like data size, columns size, row_format, and MySQL version.

                      VARCHAR 與表內(nèi)聯(lián)存儲(chǔ).VARCHAR 在大小合理時(shí)更快,權(quán)衡更快取決于您的數(shù)據(jù)和您的硬件,您希望使用您的數(shù)據(jù)對(duì)實(shí)際場(chǎng)景進(jìn)行基準(zhǔn)測(cè)試.

                      VARCHAR is stored inline with the table. VARCHAR is faster when the size is reasonable, the tradeoff of which would be faster depends upon your data and your hardware, you'd want to benchmark a real-world scenario with your data.

                      這篇關(guān)于MySQL:大 VARCHAR 與文本?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

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

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

                          1. 主站蜘蛛池模板: 国产99视频精品免视看9 | 欧美精品91| 日本精品视频在线观看 | 97精品超碰一区二区三区 | 韩日精品在线观看 | 日韩波多野结衣 | 国产精品99久久久久久宅男 | 青青久在线视频 | 艹逼网| 在线观看亚洲一区二区 | 精品免费国产 | 亚洲色片网站 | 久久99精品久久久久久国产越南 | 区一区二在线观看 | 久久久久一区 | 久久久久亚洲视频 | 91一区二区三区 | 亚洲一区二区黄 | 国产精品.xx视频.xxtv | 久久久成人网 | 亚洲国产精品久久 | 亚洲精品免费观看 | 日韩av网址在线观看 | 欧美日韩中文字幕 | 成人精品一区二区户外勾搭野战 | 本道综合精品 | 视频在线一区二区 | 色综合久| 精品免费 | 人和拘一级毛片c | 一区二区三区在线看 | 成人福利在线 | 在线观看日韩精品视频 | 一级毛片视频在线观看 | 中文字幕中文字幕 | 99av成人精品国语自产拍 | 91精品国产综合久久小仙女图片 | 欧洲亚洲一区 | 黄色一级电影免费观看 | 欧美黄色一区 | 国产精品福利视频 |