SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001053s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.005111s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001244s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.165' ) [ RunTime:0.008596s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001045s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.004476s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 481 LIMIT 1 [ RunTime:0.003899s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 481 [ RunTime:0.005360s ]
SELECT `id`,`name` FROM `product_type` WHERE `typeid` = 42 [ RunTime:0.004913s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001277s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `status` <> 2 AND `categoryid` = 481 ) AND `u`.`lockUser` = '0' [ RunTime:0.002360s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND ( `status` <> 2 AND `categoryid` = 481 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001592s ]
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 ('3610','16211','9902','8942','5465','4463','9901','10597','9092','9091','8424','9561','1788','540','13110') ORDER BY FIELD(s.id, 3610,16211,9902,8942,5465,4463,9901,10597,9092,9091,8424,9561,1788,540,13110) [ RunTime:0.002405s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001150s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 3610 LIMIT 4 [ RunTime:0.004325s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.007974s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3610 ORDER BY `minOrder` ASC [ RunTime:0.000553s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.006192s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 3610 ORDER BY `unit` DESC [ RunTime:0.008435s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001224s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 3610 LIMIT 2 [ RunTime:0.000295s ]
SELECT * FROM `stock_price` WHERE `stockid` = 3610 ORDER BY `minOrder` ASC [ RunTime:0.000201s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001500s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'RTE24005' OR `brand` LIKE 'POTTER&BRUMFIELD - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.000876s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16211 LIMIT 4 [ RunTime:0.006636s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16211 ORDER BY `minOrder` ASC [ RunTime:0.003015s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16211 ORDER BY `unit` DESC [ RunTime:0.000364s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16211 LIMIT 2 [ RunTime:0.000492s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16211 ORDER BY `minOrder` ASC [ RunTime:0.001871s ]
select * from pdf where partno='1123580000' and brandshort='WEIDMULLER' limit 1 [ RunTime:0.006111s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1123580000' OR `brand` LIKE 'WEIDMULLER%' ) ) LIMIT 1 [ RunTime:0.002307s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9902 LIMIT 4 [ RunTime:0.003365s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9902 ORDER BY `minOrder` ASC [ RunTime:0.000282s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9902 ORDER BY `unit` DESC [ RunTime:0.000330s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9902 LIMIT 2 [ RunTime:0.000445s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9902 ORDER BY `minOrder` ASC [ RunTime:0.000306s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1-1393239-6' OR `brand` LIKE 'SCHRACK - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.000312s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8942 LIMIT 4 [ RunTime:0.000471s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8942 ORDER BY `minOrder` ASC [ RunTime:0.000500s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8942 ORDER BY `unit` DESC [ RunTime:0.002819s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8942 LIMIT 2 [ RunTime:0.007090s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8942 ORDER BY `minOrder` ASC [ RunTime:0.001738s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'RTB14524..' OR `brand` LIKE 'SCHRACK - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.003854s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 5465 LIMIT 4 [ RunTime:0.012882s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5465 ORDER BY `minOrder` ASC [ RunTime:0.003132s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 5465 ORDER BY `unit` DESC [ RunTime:0.001281s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 5465 LIMIT 2 [ RunTime:0.000471s ]
SELECT * FROM `stock_price` WHERE `stockid` = 5465 ORDER BY `minOrder` ASC [ RunTime:0.000345s ]
select * from pdf where partno='1432792-1' and brandshort='POTTER&BRUMFIELD - TE CONNECTIVITY' limit 1 [ RunTime:0.003382s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1432792-1' OR `brand` LIKE 'POTTER&BRUMFIELD - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.010747s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4463 LIMIT 4 [ RunTime:0.003518s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4463 ORDER BY `minOrder` ASC [ RunTime:0.004047s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4463 ORDER BY `unit` DESC [ RunTime:0.002319s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4463 LIMIT 2 [ RunTime:0.001865s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4463 ORDER BY `minOrder` ASC [ RunTime:0.004694s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'RY2S-UDC24V' OR `brand` LIKE 'IDEC%' ) ) LIMIT 1 [ RunTime:0.006945s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9901 LIMIT 4 [ RunTime:0.006057s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9901 ORDER BY `minOrder` ASC [ RunTime:0.000350s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9901 ORDER BY `unit` DESC [ RunTime:0.007041s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9901 LIMIT 2 [ RunTime:0.005021s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9901 ORDER BY `minOrder` ASC [ RunTime:0.004851s ]
select * from pdf where partno='6-1419111-4' and brandshort='SCHRACK - TE CONNECTIVITY' limit 1 [ RunTime:0.005135s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '6-1419111-4' OR `brand` LIKE 'SCHRACK - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.000779s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 10597 LIMIT 4 [ RunTime:0.000693s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10597 ORDER BY `minOrder` ASC [ RunTime:0.003117s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 10597 ORDER BY `unit` DESC [ RunTime:0.010163s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 10597 LIMIT 2 [ RunTime:0.007484s ]
SELECT * FROM `stock_price` WHERE `stockid` = 10597 ORDER BY `minOrder` ASC [ RunTime:0.001065s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '563280240040' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.001736s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9092 LIMIT 4 [ RunTime:0.008693s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9092 ORDER BY `minOrder` ASC [ RunTime:0.013557s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9092 ORDER BY `unit` DESC [ RunTime:0.000787s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9092 LIMIT 2 [ RunTime:0.005787s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9092 ORDER BY `minOrder` ASC [ RunTime:0.003707s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1122880000' OR `brand` LIKE 'WEIDMULLER%' ) ) LIMIT 1 [ RunTime:0.003045s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9091 LIMIT 4 [ RunTime:0.004342s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9091 ORDER BY `minOrder` ASC [ RunTime:0.007511s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9091 ORDER BY `unit` DESC [ RunTime:0.015724s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9091 LIMIT 2 [ RunTime:0.007049s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9091 ORDER BY `minOrder` ASC [ RunTime:0.000375s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '1123580000' OR `brand` LIKE 'WEIDMULLER%' ) ) LIMIT 1 [ RunTime:0.000391s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8424 LIMIT 4 [ RunTime:0.000506s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8424 ORDER BY `minOrder` ASC [ RunTime:0.003747s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8424 ORDER BY `unit` DESC [ RunTime:0.000527s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8424 LIMIT 2 [ RunTime:0.001166s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8424 ORDER BY `minOrder` ASC [ RunTime:0.001978s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'G2RV-SR700-AP AC230' OR `brand` LIKE 'OMRON INDUSTRIAL AUTOMATION%' ) ) LIMIT 1 [ RunTime:0.001149s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 9561 LIMIT 4 [ RunTime:0.003009s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9561 ORDER BY `minOrder` ASC [ RunTime:0.009259s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 9561 ORDER BY `unit` DESC [ RunTime:0.000849s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 9561 LIMIT 2 [ RunTime:0.014047s ]
SELECT * FROM `stock_price` WHERE `stockid` = 9561 ORDER BY `minOrder` ASC [ RunTime:0.000470s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'G6DN-1A-L DC12' OR `brand` LIKE 'OMRON ELECTRONIC COMPONENTS%' ) ) LIMIT 1 [ RunTime:0.001142s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1788 LIMIT 4 [ RunTime:0.004853s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1788 ORDER BY `minOrder` ASC [ RunTime:0.001494s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1788 ORDER BY `unit` DESC [ RunTime:0.000998s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1788 LIMIT 2 [ RunTime:0.001024s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1788 ORDER BY `minOrder` ASC [ RunTime:0.000350s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'KHU-17A12-120' OR `brand` LIKE 'POTTER&BRUMFIELD - TE CONNECTIVITY%' ) ) LIMIT 1 [ RunTime:0.007301s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 540 LIMIT 4 [ RunTime:0.013138s ]
SELECT * FROM `stock_price` WHERE `stockid` = 540 ORDER BY `minOrder` ASC [ RunTime:0.001611s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 540 ORDER BY `unit` DESC [ RunTime:0.006746s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 540 LIMIT 2 [ RunTime:0.004746s ]
SELECT * FROM `stock_price` WHERE `stockid` = 540 ORDER BY `minOrder` ASC [ RunTime:0.001714s ]
select * from pdf where partno='JW2ASN-DC24V..' and brandshort='PANASONIC' limit 1 [ RunTime:0.001662s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'JW2ASN-DC24V..' OR `brand` LIKE 'PANASONIC%' ) ) LIMIT 1 [ RunTime:0.008166s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 13110 LIMIT 4 [ RunTime:0.009007s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13110 ORDER BY `minOrder` ASC [ RunTime:0.001084s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 13110 ORDER BY `unit` DESC [ RunTime:0.000594s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 13110 LIMIT 2 [ RunTime:0.000487s ]
SELECT * FROM `stock_price` WHERE `stockid` = 13110 ORDER BY `minOrder` ASC [ RunTime:0.000328s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'G7Z-2A2B-20Z-R DC24V' OR `brand` LIKE 'OMRON INDUSTRIAL AUTOMATION%' ) ) LIMIT 1 [ RunTime:0.006441s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `status` <> 2 AND `categoryid` = 481 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.006522s ]