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

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

    • <bdo id='kC9Zg'></bdo><ul id='kC9Zg'></ul>

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

        MySQL 查詢?cè)诙禾?hào)分隔的字符串中查找值

        MySQL query finding values in a comma separated string(MySQL 查詢?cè)诙禾?hào)分隔的字符串中查找值)

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

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

              <tfoot id='HA6CB'></tfoot>
                <bdo id='HA6CB'></bdo><ul id='HA6CB'></ul>
              • <small id='HA6CB'></small><noframes id='HA6CB'>

                  本文介紹了MySQL 查詢?cè)诙禾?hào)分隔的字符串中查找值的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我的表 SHIRTS 中有一個(gè)字段 COLORS (varchar(50)),它包含一個(gè)逗號(hào)分隔的字符串,例如 1,2,5,12,15,.每個(gè)數(shù)字代表可用的顏色.

                  I have a field COLORS (varchar(50)) in a my table SHIRTS that contains a comma delimited string such as 1,2,5,12,15,. Each number representing the available colors.

                  當(dāng)運(yùn)行查詢 select * from shirts where colours like '%1%' 以獲取所有紅色襯衫(顏色 = 1)時(shí),我還會(huì)得到顏色為灰色( = 12) 和橙色 (=15).

                  When running the query select * from shirts where colors like '%1%' to get all the red shirts (color=1), I also get the shirts whose color is grey (=12) and orange (=15).

                  我應(yīng)該如何重寫查詢,以便僅選擇顏色 1 而不是所有包含數(shù)字 1 的顏色?

                  How should I rewrite the query so that is selects ONLY the color 1 and not all colors containing the number 1?

                  推薦答案

                  經(jīng)典的方法是在左右添加逗號(hào):

                  The classic way would be to add commas to the left and right:

                  select * from shirts where CONCAT(',', colors, ',') like '%,1,%'
                  

                  但是find_in_set也有效:

                  select * from shirts where find_in_set('1',colors) <> 0
                  

                  這篇關(guān)于MySQL 查詢?cè)诙禾?hào)分隔的字符串中查找值的文章就介紹到這了,希望我們推薦的答案對(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ù)庫(kù)表作為 Spark 數(shù)據(jù)幀讀取?)
                    <tbody id='H3gNQ'></tbody>

                  • <legend id='H3gNQ'><style id='H3gNQ'><dir id='H3gNQ'><q id='H3gNQ'></q></dir></style></legend>
                    • <small id='H3gNQ'></small><noframes id='H3gNQ'>

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

                            主站蜘蛛池模板: 国产在线一区观看 | 日本一区二区在线视频 | 91亚洲欧美| 中文字幕亚洲国产 | 欧美日韩成人网 | 国产精品久久久久久 | 欧美美女二区 | 久久国产精品免费一区二区三区 | 日韩视频区 | 美女天堂 | 最新日韩精品 | 亚洲欧美高清 | jizz在线看片| 成人国产精品视频 | 在线播放精品视频 | 日日碰狠狠躁久久躁婷婷 | 久久av一区二区三区 | 久久久久久久久久影视 | 日韩中文字幕在线免费 | 亚洲成人精品久久久 | 成人在线激情 | 国产99久久精品一区二区永久免费 | 亚洲国产二区 | 精品影院| 日韩电影中文字幕 | 国产精品久久久久久久久久久久 | 日本午夜在线视频 | 巨大荫蒂视频欧美另类大 | 一区欧美 | 日韩成人免费av | 久久成人人人人精品欧 | 国产精品亚洲一区二区三区在线观看 | 久久国产精品首页 | 一级在线视频 | 欧美亚洲国产一区二区三区 | 欧美色视频免费 | 秋霞在线一区 | 一区二区三区在线播放视频 | 91综合网 | 欧美日韩一区在线观看 | 国产精品日本一区二区在线播放 |