SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002300s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.004290s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002694s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.186' ) [ RunTime:0.000415s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002450s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.002230s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000445s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000236s ]
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.000483s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002517s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay IS NULL OR s.isDisplay = 1) ) AND ( `partno` LIKE 'SMBJ5.0A%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.003418s ]
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 IS NULL OR s.isDisplay = 1) ) AND `s`.`id` IN ('4766487','4767866','4766485','4311638','4315862','6630057','4312427','6632657','4324485','4313402','4772230','6630491','4315555','4768175','4323187','4768413','14820','6630958','4767887','4768129') ORDER BY FIELD(s.id, 4766487,4767866,4766485,4311638,4315862,6630057,4312427,6632657,4324485,4313402,4772230,6630491,4315555,4768175,4323187,4768413,14820,6630958,4767887,4768129) [ RunTime:0.007478s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.000880s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4766487 LIMIT 4 [ RunTime:0.000522s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002413s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4766487 ORDER BY `minOrder` ASC [ RunTime:0.002575s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.002993s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4766487 ORDER BY `unit` DESC [ RunTime:0.000582s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.000925s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4766487 LIMIT 2 [ RunTime:0.000311s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4766487 ORDER BY `minOrder` ASC [ RunTime:0.000164s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4767866 LIMIT 4 [ RunTime:0.000405s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4767866 ORDER BY `minOrder` ASC [ RunTime:0.000240s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4767866 ORDER BY `unit` DESC [ RunTime:0.001771s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4767866 LIMIT 2 [ RunTime:0.001750s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4767866 ORDER BY `minOrder` ASC [ RunTime:0.001162s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4766485 LIMIT 4 [ RunTime:0.000413s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4766485 ORDER BY `minOrder` ASC [ RunTime:0.003373s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4766485 ORDER BY `unit` DESC [ RunTime:0.000251s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4766485 LIMIT 2 [ RunTime:0.000234s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4766485 ORDER BY `minOrder` ASC [ RunTime:0.000150s ]
select * from pdf where partno='SMBJ5.0A' and brandshort='Littelfuse Inc.' limit 1 [ RunTime:0.008211s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4311638 LIMIT 4 [ RunTime:0.006263s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4311638 ORDER BY `minOrder` ASC [ RunTime:0.003535s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4311638 ORDER BY `unit` DESC [ RunTime:0.000551s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4311638 LIMIT 2 [ RunTime:0.001305s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4311638 ORDER BY `minOrder` ASC [ RunTime:0.000266s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4315862 LIMIT 4 [ RunTime:0.000691s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4315862 ORDER BY `minOrder` ASC [ RunTime:0.001575s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4315862 ORDER BY `unit` DESC [ RunTime:0.003960s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4315862 LIMIT 2 [ RunTime:0.000351s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4315862 ORDER BY `minOrder` ASC [ RunTime:0.000254s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6630057 LIMIT 4 [ RunTime:0.004239s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6630057 ORDER BY `minOrder` ASC [ RunTime:0.000504s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6630057 ORDER BY `unit` DESC [ RunTime:0.000340s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6630057 LIMIT 2 [ RunTime:0.000337s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6630057 ORDER BY `minOrder` ASC [ RunTime:0.001909s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4312427 LIMIT 4 [ RunTime:0.000558s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4312427 ORDER BY `minOrder` ASC [ RunTime:0.004133s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4312427 ORDER BY `unit` DESC [ RunTime:0.000833s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4312427 LIMIT 2 [ RunTime:0.000402s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4312427 ORDER BY `minOrder` ASC [ RunTime:0.000255s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6632657 LIMIT 4 [ RunTime:0.001765s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6632657 ORDER BY `minOrder` ASC [ RunTime:0.003229s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6632657 ORDER BY `unit` DESC [ RunTime:0.001308s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6632657 LIMIT 2 [ RunTime:0.003031s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6632657 ORDER BY `minOrder` ASC [ RunTime:0.000756s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4324485 LIMIT 4 [ RunTime:0.001797s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4324485 ORDER BY `minOrder` ASC [ RunTime:0.000364s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4324485 ORDER BY `unit` DESC [ RunTime:0.000955s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4324485 LIMIT 2 [ RunTime:0.000329s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4324485 ORDER BY `minOrder` ASC [ RunTime:0.000295s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4313402 LIMIT 4 [ RunTime:0.000489s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4313402 ORDER BY `minOrder` ASC [ RunTime:0.000326s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4313402 ORDER BY `unit` DESC [ RunTime:0.000581s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4313402 LIMIT 2 [ RunTime:0.000668s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4313402 ORDER BY `minOrder` ASC [ RunTime:0.000376s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4772230 LIMIT 4 [ RunTime:0.003617s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4772230 ORDER BY `minOrder` ASC [ RunTime:0.001774s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4772230 ORDER BY `unit` DESC [ RunTime:0.000407s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4772230 LIMIT 2 [ RunTime:0.000331s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4772230 ORDER BY `minOrder` ASC [ RunTime:0.000246s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6630491 LIMIT 4 [ RunTime:0.000719s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6630491 ORDER BY `minOrder` ASC [ RunTime:0.000379s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6630491 ORDER BY `unit` DESC [ RunTime:0.000642s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6630491 LIMIT 2 [ RunTime:0.000315s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6630491 ORDER BY `minOrder` ASC [ RunTime:0.000242s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4315555 LIMIT 4 [ RunTime:0.000461s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4315555 ORDER BY `minOrder` ASC [ RunTime:0.001169s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4315555 ORDER BY `unit` DESC [ RunTime:0.004173s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4315555 LIMIT 2 [ RunTime:0.007638s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4315555 ORDER BY `minOrder` ASC [ RunTime:0.001880s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4768175 LIMIT 4 [ RunTime:0.001712s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4768175 ORDER BY `minOrder` ASC [ RunTime:0.001148s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4768175 ORDER BY `unit` DESC [ RunTime:0.000363s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4768175 LIMIT 2 [ RunTime:0.000331s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4768175 ORDER BY `minOrder` ASC [ RunTime:0.000248s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4323187 LIMIT 4 [ RunTime:0.000470s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4323187 ORDER BY `minOrder` ASC [ RunTime:0.001156s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4323187 ORDER BY `unit` DESC [ RunTime:0.003480s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4323187 LIMIT 2 [ RunTime:0.001544s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4323187 ORDER BY `minOrder` ASC [ RunTime:0.003049s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4768413 LIMIT 4 [ RunTime:0.000548s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4768413 ORDER BY `minOrder` ASC [ RunTime:0.000351s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4768413 ORDER BY `unit` DESC [ RunTime:0.000357s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4768413 LIMIT 2 [ RunTime:0.000327s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4768413 ORDER BY `minOrder` ASC [ RunTime:0.001021s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 14820 LIMIT 4 [ RunTime:0.000326s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14820 ORDER BY `minOrder` ASC [ RunTime:0.002273s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 14820 ORDER BY `unit` DESC [ RunTime:0.000482s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 14820 LIMIT 2 [ RunTime:0.000881s ]
SELECT * FROM `stock_price` WHERE `stockid` = 14820 ORDER BY `minOrder` ASC [ RunTime:0.000262s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001358s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'SMBJ5.0A-TR.' OR `brand` LIKE 'STMICROELECTRONICS%' ) ) LIMIT 1 [ RunTime:0.000909s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6630958 LIMIT 4 [ RunTime:0.004322s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6630958 ORDER BY `minOrder` ASC [ RunTime:0.001381s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6630958 ORDER BY `unit` DESC [ RunTime:0.007038s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6630958 LIMIT 2 [ RunTime:0.004129s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6630958 ORDER BY `minOrder` ASC [ RunTime:0.000492s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4767887 LIMIT 4 [ RunTime:0.000757s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4767887 ORDER BY `minOrder` ASC [ RunTime:0.000566s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4767887 ORDER BY `unit` DESC [ RunTime:0.002601s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4767887 LIMIT 2 [ RunTime:0.002316s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4767887 ORDER BY `minOrder` ASC [ RunTime:0.000390s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4768129 LIMIT 4 [ RunTime:0.000806s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4768129 ORDER BY `minOrder` ASC [ RunTime:0.000495s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4768129 ORDER BY `unit` DESC [ RunTime:0.000492s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4768129 LIMIT 2 [ RunTime:0.000501s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4768129 ORDER BY `minOrder` ASC [ RunTime:0.001847s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'SMBJ5.0A%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.002024s ]