+ Use This Table All Design

MySQL Create Table SQL

Table Structure: okayapi_shopxo_s_search_history:/tablelist/okayapi_shopxo_s_search_history.html


-- MySQL Table okayapi_shopxo_s_search_history
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_search_history` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
    `brand_id` int(11) NOT NULL DEFAULT '0' COMMENT '品牌id',
    `category_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类id',
    `keywords` char(80) NOT NULL COMMENT '搜索关键字',
    `screening_price` char(80) NOT NULL COMMENT '搜索价格区间',
    `order_by_field` char(60) NOT NULL COMMENT '排序类型(字段名称)',
    `order_by_type` char(60) NOT NULL COMMENT '排序方式(asc, desc)',
    `ymd` int(11) NOT NULL DEFAULT '0' COMMENT '日期 ymd',
    KEY `user_id` (`user_id`),
    KEY `brand_id` (`brand_id`),
    KEY `category_id` (`category_id`),
    KEY `keywords` (`keywords`),
    KEY `screening_price` (`screening_price`),
    KEY `order_by_field` (`order_by_field`),
    KEY `order_by_type` (`order_by_type`),
    KEY `ymd` (`ymd`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'ShopXO商城-搜索日志';

After replication, you can go to the database to create the database table.


MySQL database table structure design

Displaying 1-8 of 8 results.
Field NameField TypeDefaultIS NULLField CommentIndexDemo Data
user_idint(11)0用户id0
brand_idint(11)0品牌id0
category_idint(11)0分类id0
keywordschar(80)搜索关键字
screening_pricechar(80)搜索价格区间
order_by_fieldchar(60)排序类型(字段名称)
order_by_typechar(60)排序方式(asc, desc)
ymdint(11)0日期 ymd0

Guess You Like

MySQL Table Design okayapi_goods

MySQL Table Design okayapi_goods_comment

MySQL Table Design okayapi_shopxo_s_admin

MySQL Table Design okayapi_shopxo_s_answer

MySQL Table Design okayapi_shopxo_s_app_center_nav

MySQL Table Design okayapi_shopxo_s_app_home_nav

MySQL Table Design okayapi_shopxo_s_article

MySQL Table Design okayapi_shopxo_s_article_category

MySQL Table Design okayapi_shopxo_s_attachment

MySQL Table Design okayapi_shopxo_s_brand

MySQL Table Design okayapi_shopxo_s_brand_category

MySQL Table Design okayapi_shopxo_s_cart

MySQL Table Design okayapi_shopxo_s_config

MySQL Table Design okayapi_shopxo_s_custom_view

MySQL Table Design okayapi_shopxo_s_express

MySQL Table Design okayapi_shopxo_s_goods

MySQL Table Design okayapi_shopxo_s_goods_browse

MySQL Table Design okayapi_shopxo_s_goods_category

MySQL Table Design okayapi_shopxo_s_goods_category_join

MySQL Table Design okayapi_shopxo_s_goods_comments

TOP ↑