<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                **magento數據庫表概述** magento數據表數量很大,在我們安裝的版本2.3.6中,一共有393張表。 與傳統的mysql建表方式有所不同,magento為了達到字段方便擴展,結構靈活,在部分業務場中使用了EAV模式的表結構: **EAV的含義** eav三個字母對應的三個單詞為 Entity:實體 Attribute:屬性 Value:值 EAV的理解:Entity-Attribute-Value/(實體-屬性-值) * 實體:包括要存儲的數據類型的信息(客戶,產品......) * 屬性:是實體的屬性(顏色,大小,高度......) * 值:是給定屬性的值(藍色,紅色,......) 也就是說,在我們傳統的一張表,以eav的方式實現時,會被橫向拆分為多張數據表。 這樣做的好處是:可以方便的擴展字段,自定義字段。 如,我們可以在magento的后臺,為商品擴展屬性字段,并指定該屬性的值采用的類型,如text,select下拉,checkbox等。 **magento中使用到EAV模式的場景** 用戶Customer相關的表: ``` | customer_entity | customer_entity_datetime | customer_entity_decimal | customer_entity_int | customer_entity_text | customer_entity_varchar ``` 客戶地址相關表: ``` | customer_address_entity | customer_address_entity_datetime | customer_address_entity_decimal | customer_address_entity_int | customer_address_entity_text | customer_address_entity_varchar ``` 產品表: ``` | catalog_product_entity | catalog_product_entity_datetime | catalog_product_entity_decimal | catalog_product_entity_gallery | catalog_product_entity_int | catalog_product_entity_media_gallery | catalog_product_entity_media_gallery_value | catalog_product_entity_media_gallery_value_to_entity | catalog_product_entity_media_gallery_value_video | catalog_product_entity_text | catalog_product_entity_tier_price | catalog_product_entity_varchar ``` 分類表: ``` | catalog_category_entity | catalog_category_entity_datetime | catalog_category_entity_decimal | catalog_category_entity_int | catalog_category_entity_text ``` 實體類型表: ``` eav_entity_int eav_entity_varchar eav_entity_text eav_entity_decimal eav_entity_datetime ``` <blockquote class='danger'>我們在平時的開發中,需要對eav有一個大概的了解,這樣在具體的業務邏輯中,才能清楚數據分布在了哪些表中。</blockquote>
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看