SHOW FULL COLUMNS FROM `tp_goods_category` [ RunTime:0.000482s ]
SELECT * FROM `tp_goods_category` WHERE `is_show` = 1 ORDER BY `sort_order` [ RunTime:0.002351s ]
SHOW FULL COLUMNS FROM `tp_brand` [ RunTime:0.011896s ]
SELECT `id`,`cat_id`,`logo`,`is_hot` FROM `tp_brand` WHERE ( cat_id > 0 ) [ RunTime:0.000295s ]
SELECT * FROM `tp_goods_category` WHERE `id` = 45 LIMIT 1 [ RunTime:0.000288s ]
SELECT `id`,`parent_id` FROM `tp_goods_category` [ RunTime:0.002564s ]
SELECT `id` FROM `tp_goods_category` WHERE `parent_id` = 45 [ RunTime:0.000282s ]
SHOW FULL COLUMNS FROM `tp_goods` [ RunTime:0.000710s ]
SELECT `goods_id` FROM `tp_goods` WHERE `is_on_sale` = 1 AND `exchange_integral` = 0 AND `cat_id` IN (45,262,263,264,265,266,268,269,270) [ RunTime:0.000357s ]
SELECT `shop_price` FROM `tp_goods` WHERE `goods_id` = 4 [ RunTime:0.000223s ]
SELECT `brand_id` FROM `tp_goods` WHERE `goods_id` = 4 AND `brand_id` > 0 [ RunTime:0.000236s ]
SELECT * FROM `tp_brand` WHERE `id` IN ('') LIMIT 30 [ RunTime:0.000200s ]
select group_concat(`key` separator '_') as `key` from tp_spec_goods_price where goods_id in(4) [ RunTime:0.000357s ]
SHOW FULL COLUMNS FROM `tp_goods_attr` [ RunTime:0.000413s ]
SELECT * FROM `tp_goods_attr` WHERE `goods_id` = 4 AND `attr_value` <> '' [ RunTime:0.000271s ]
SHOW FULL COLUMNS FROM `tp_goods_attribute` [ RunTime:0.000407s ]
SELECT `attr_id`,`attr_id`,`attr_name`,`attr_index` FROM `tp_goods_attribute` WHERE ( attr_index = 1 ) [ RunTime:0.000319s ]
SELECT * FROM `tp_goods` WHERE `goods_id` = 4 ORDER BY `sort` ASC LIMIT 0,10 [ RunTime:0.000429s ]
SHOW FULL COLUMNS FROM `tp_goods_images` [ RunTime:0.000421s ]
SELECT * FROM `tp_goods_images` WHERE `goods_id` = 4 [ RunTime:0.000237s ]
SELECT `id`,`id`,`name`,`parent_id`,`level` FROM `tp_goods_category` WHERE ( is_show=1 ) [ RunTime:0.000550s ]
SELECT `original_img` FROM `tp_goods` WHERE `goods_id` = 4 LIMIT 1 [ RunTime:0.000289s ]