SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000302s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.001631s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,800,1068,1296,1456,1822,1929,2017,2101,2342,2393,2475,2518,2568) [ RunTime:0.000402s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001993s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `partno` LIKE 'C1608X7R1C474K080AC%' AND `status` <> 2 ) AND `u`.`lockUser` = '0' [ RunTime:0.008929s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND ( `partno` LIKE 'C1608X7R1C474K080AC%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.006103s ]
SELECT `s`.`id`,`s`.`userid`,`s`.`status`,`havePdf`,`categoryid`,`categories`,`minOrderPrice`,`minOrderQuantity`,`deliveryNum`,`sellNum`,`stockNum`,`code`,`partno`,`brand`,`package`,`imgurl`,`note`,`description`,`expiretime`,`pdfurl`,`t`.`name` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND `s`.`id` IN ('16725','15706','4938') ORDER BY FIELD(s.id, 16725,15706,4938) [ RunTime:0.001539s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001974s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16725 LIMIT 4 [ RunTime:0.000421s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001497s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16725 ORDER BY `minOrder` ASC [ RunTime:0.000240s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001509s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16725 ORDER BY `unit` DESC [ RunTime:0.000780s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001469s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16725 LIMIT 2 [ RunTime:0.003626s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16725 ORDER BY `minOrder` ASC [ RunTime:0.000251s ]
select * from pdf where partno='C1608X7R1C474K080AC' and brandshort='TDK' limit 1 [ RunTime:0.000350s ]
select foldpath,foldpath2,filename from pdf_file where id=1917933 limit 1 [ RunTime:0.001598s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002494s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'C1608X7R1C474K080AC' OR `brand` LIKE 'TDK%' ) ) LIMIT 1 [ RunTime:0.000445s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15706 LIMIT 4 [ RunTime:0.000797s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15706 ORDER BY `minOrder` ASC [ RunTime:0.006139s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15706 ORDER BY `unit` DESC [ RunTime:0.000395s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15706 LIMIT 2 [ RunTime:0.000591s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15706 ORDER BY `minOrder` ASC [ RunTime:0.000382s ]
select * from pdf where partno='C1608X7R1C474K080AC' and brandshort='TDK' limit 1 [ RunTime:0.000570s ]
select foldpath,foldpath2,filename from pdf_file where id=1917933 limit 1 [ RunTime:0.000366s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'C1608X7R1C474K080AC' OR `brand` LIKE 'TDK%' ) ) LIMIT 1 [ RunTime:0.000403s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4938 LIMIT 4 [ RunTime:0.004753s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4938 ORDER BY `minOrder` ASC [ RunTime:0.003788s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4938 ORDER BY `unit` DESC [ RunTime:0.002754s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4938 LIMIT 2 [ RunTime:0.003673s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4938 ORDER BY `minOrder` ASC [ RunTime:0.003412s ]
select * from pdf where partno='C1608X7R1C474K080AC' and brandshort='TDK' limit 1 [ RunTime:0.001946s ]
select foldpath,foldpath2,filename from pdf_file where id=1917933 limit 1 [ RunTime:0.000380s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'C1608X7R1C474K080AC' OR `brand` LIKE 'TDK%' ) ) LIMIT 1 [ RunTime:0.000488s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'C1608X7R1C474K080AC%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.004796s ]