SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000271s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.002189s ]
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.000443s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002184s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `partno` LIKE 'CRCW08056K80FKEA%' AND `status` <> 2 ) AND `u`.`lockUser` = '0' [ RunTime:0.001023s ]
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 'CRCW08056K80FKEA%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.000782s ]
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 ('17123','16105','2368','3769') ORDER BY FIELD(s.id, 17123,16105,2368,3769) [ RunTime:0.002427s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.003393s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 17123 LIMIT 4 [ RunTime:0.000811s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002016s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17123 ORDER BY `minOrder` ASC [ RunTime:0.004867s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001072s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 17123 ORDER BY `unit` DESC [ RunTime:0.000644s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.000918s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 17123 LIMIT 2 [ RunTime:0.000274s ]
SELECT * FROM `stock_price` WHERE `stockid` = 17123 ORDER BY `minOrder` ASC [ RunTime:0.002256s ]
select * from pdf where partno='CRCW08056K80FKEAHP' and brandshort='VISHAY' limit 1 [ RunTime:0.001554s ]
select foldpath,foldpath2,filename from pdf_file where id=1917807 limit 1 [ RunTime:0.006846s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001318s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CRCW08056K80FKEAHP' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.011651s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16105 LIMIT 4 [ RunTime:0.003142s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16105 ORDER BY `minOrder` ASC [ RunTime:0.009506s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16105 ORDER BY `unit` DESC [ RunTime:0.000420s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16105 LIMIT 2 [ RunTime:0.000385s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16105 ORDER BY `minOrder` ASC [ RunTime:0.000235s ]
select * from pdf where partno='CRCW08056K80FKEAHP' and brandshort='VISHAY' limit 1 [ RunTime:0.000307s ]
select foldpath,foldpath2,filename from pdf_file where id=1917807 limit 1 [ RunTime:0.000184s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CRCW08056K80FKEAHP' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000203s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 2368 LIMIT 4 [ RunTime:0.001132s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2368 ORDER BY `minOrder` ASC [ RunTime:0.000513s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 2368 ORDER BY `unit` DESC [ RunTime:0.004240s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 2368 LIMIT 2 [ RunTime:0.000363s ]
SELECT * FROM `stock_price` WHERE `stockid` = 2368 ORDER BY `minOrder` ASC [ RunTime:0.000187s ]
select * from pdf where partno='CRCW08056K80FKEA' and brandshort='VISHAY' limit 1 [ RunTime:0.001015s ]
select foldpath,foldpath2,filename from pdf_file where id=1918300 limit 1 [ RunTime:0.002562s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CRCW08056K80FKEA' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.006482s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3769 LIMIT 4 [ RunTime:0.000376s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3769 ORDER BY `minOrder` ASC [ RunTime:0.000587s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3769 ORDER BY `unit` DESC [ RunTime:0.002040s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3769 LIMIT 2 [ RunTime:0.003431s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3769 ORDER BY `minOrder` ASC [ RunTime:0.000265s ]
select * from pdf where partno='CRCW08056K80FKEAHP' and brandshort='VISHAY' limit 1 [ RunTime:0.000307s ]
select foldpath,foldpath2,filename from pdf_file where id=1917807 limit 1 [ RunTime:0.000155s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'CRCW08056K80FKEAHP' OR `brand` LIKE 'VISHAY%' ) ) LIMIT 1 [ RunTime:0.000222s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'CRCW08056K80FKEA%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.000864s ]