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

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

  1. <small id='WwCGf'></small><noframes id='WwCGf'>

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

    1. <tfoot id='WwCGf'></tfoot>

      <i id='WwCGf'><tr id='WwCGf'><dt id='WwCGf'><q id='WwCGf'><span id='WwCGf'><b id='WwCGf'><form id='WwCGf'><ins id='WwCGf'></ins><ul id='WwCGf'></ul><sub id='WwCGf'></sub></form><legend id='WwCGf'></legend><bdo id='WwCGf'><pre id='WwCGf'><center id='WwCGf'></center></pre></bdo></b><th id='WwCGf'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='WwCGf'><tfoot id='WwCGf'></tfoot><dl id='WwCGf'><fieldset id='WwCGf'></fieldset></dl></div>
    2. 連接與 Django 中查詢(xún)集中記錄的多行相關(guān)的字段

      Concatenation of a field related to multiple rows of a record in query set in Django(連接與 Django 中查詢(xún)集中記錄的多行相關(guān)的字段)
    3. <legend id='yZLZG'><style id='yZLZG'><dir id='yZLZG'><q id='yZLZG'></q></dir></style></legend>

        1. <small id='yZLZG'></small><noframes id='yZLZG'>

              <tbody id='yZLZG'></tbody>

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

                <tfoot id='yZLZG'></tfoot>
              • <i id='yZLZG'><tr id='yZLZG'><dt id='yZLZG'><q id='yZLZG'><span id='yZLZG'><b id='yZLZG'><form id='yZLZG'><ins id='yZLZG'></ins><ul id='yZLZG'></ul><sub id='yZLZG'></sub></form><legend id='yZLZG'></legend><bdo id='yZLZG'><pre id='yZLZG'><center id='yZLZG'></center></pre></bdo></b><th id='yZLZG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='yZLZG'><tfoot id='yZLZG'></tfoot><dl id='yZLZG'><fieldset id='yZLZG'></fieldset></dl></div>
              • 本文介紹了連接與 Django 中查詢(xún)集中記錄的多行相關(guān)的字段的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

                問(wèn)題描述

                限時(shí)送ChatGPT賬號(hào)..

                我必須用一對(duì)多的關(guān)系建模,我試圖用它來(lái)區(qū)分我的記錄類(lèi)型.假設(shè)第一個(gè)模型專(zhuān)用于 Book 信息,第二個(gè)模型是一些類(lèi)型,例如 A、B、C,并且 Type 表與 Book 之間存在間接關(guān)系,因此每本書(shū)可以是 A、B 或 C 或任何可能的組合類(lèi)型.我想使用串聯(lián)(或注釋中的任何其他可能的函數(shù)來(lái)收集字段中的所有類(lèi)型).

                I have to models with one to many relation with which I try to distinguish the type of my records. Let's say First model is dedicated to Book information and second model is some types such as A, B , C and there is an indirect relation from the Type table to Book, so each book could be A, B or C or any possible combination of Types. I want to use concatenation (or any other possible function in annotation to gather all the types in a field).

                Book.objects.all(
                ).annotate(
                    Types = F('TableRelation__Type__Name')
                ).annotate(
                    CombinedTypes = Concat('Types')
                )
                

                拋出錯(cuò)誤,因?yàn)橹挥幸粋€(gè)參數(shù)被傳遞給連接.我正在尋找的結(jié)果是一個(gè)針對(duì) Book 的任何唯一 id 填充了ABAB"的 CombinedTypes 字段,這表明該記錄是AB"(或 A、B 和 C 的任何其他組合).

                which throws an error since only one argument is passed to be Concatenated. The result I am looking for is a CombinedTypes field filled with "ABAB" for any unique id of Book which shows that that record is an "AB" (or any other combination of A,B and C).

                我怎樣才能做到這一點(diǎn)?

                How can I achieve this?

                推薦答案

                我最終使用了 this 中解釋的解決方案@Ahmad 在評(píng)論中介紹的帖子中的堆棧溢出答案.

                I ended up using the solution explained in this Stack-overflow answer in the post introduced by @Ahmad in comments.

                這篇關(guān)于連接與 Django 中查詢(xún)集中記錄的多行相關(guān)的字段的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                相關(guān)文檔推薦

                SQL query to get all products, categories and meta data woocommerce/wordpress(獲取所有產(chǎn)品、類(lèi)別和元數(shù)據(jù)的 SQL 查詢(xún) woocommerce/wordpress)
                How to use MySQL in WSL (Windows Subsystem for Linux)?(如何在 WSL(Linux 的 Windows 子系統(tǒng))中使用 MySQL?)
                PowerShell MySQL Backup Script Error in Task Scheduler 0x00041301(任務(wù)計(jì)劃程序中的 PowerShell MySQL 備份腳本錯(cuò)誤 0x00041301)
                Import the data from the XML files into a MySQL database(將數(shù)據(jù)從 XML 文件導(dǎo)入 MySQL 數(shù)據(jù)庫(kù))
                installed Xampp on Windows 7 32-bit. Errors when starting(在 Windows 7 32 位上安裝 Xampp.啟動(dòng)時(shí)的錯(cuò)誤)
                Mysql lower case table on Windows xampp(Windows xampp 上的 Mysql 小寫(xiě)表)

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

                1. <legend id='3zLmr'><style id='3zLmr'><dir id='3zLmr'><q id='3zLmr'></q></dir></style></legend>
                    <bdo id='3zLmr'></bdo><ul id='3zLmr'></ul>

                    <small id='3zLmr'></small><noframes id='3zLmr'>

                        <tfoot id='3zLmr'></tfoot>
                            <tbody id='3zLmr'></tbody>
                          主站蜘蛛池模板: 色综合一区 | 长河落日连续剧48集免费观看 | 久久98| 久视频在线 | 精品一区二区免费视频 | 亚洲自拍偷拍视频 | 在线亚洲欧美 | 91高清国产 | www.日韩在线| av激情网| 国产乱国产乱300精品 | 中文字幕一区二区在线播放 | 日韩综合一区 | av福利网 | 久久婷婷色| 精品国产91 | 青青草成人在线 | 欧美一级片免费 | 日本中文字幕视频 | 欧美国产日韩一区二区 | 精品天堂 | 999久久久精品 | 一级片在线观看视频 | www.日本黄色| 国产精品成人国产乱一区 | 亚洲精品aaa| 97超碰在线免费观看 | 色偷偷网站| 男女啪啪免费网站 | www..com黄| 国产高清91 | av大片在线观看 | 青青久久久 | 国产精品久久久久久久久久久久久久 | 日韩在线观看中文字幕 | 日韩手机在线视频 | 小镇姑娘国语版在线观看免费 | 黄色成年人网站 | 国产在线高清 | 久久精品国产视频 | 超碰人人网 |