SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001129s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000443s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001441s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.37' ) [ RunTime:0.004532s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002132s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.002175s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.001972s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000317s ]
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.001458s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002920s ]
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 'BAT54S-7-F%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.001970s ]
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 ('4530','6191','16386','15366') ORDER BY FIELD(s.id, 4530,6191,16386,15366) [ RunTime:0.001510s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001902s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 4530 LIMIT 4 [ RunTime:0.002774s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001274s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4530 ORDER BY `minOrder` ASC [ RunTime:0.000576s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001161s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 4530 ORDER BY `unit` DESC [ RunTime:0.001445s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.000888s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 4530 LIMIT 2 [ RunTime:0.000420s ]
SELECT * FROM `stock_price` WHERE `stockid` = 4530 ORDER BY `minOrder` ASC [ RunTime:0.000166s ]
select * from pdf where partno='BAT54S-7-F' and brandshort='DIODES INC.' limit 1 [ RunTime:0.001961s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.000941s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAT54S-7-F' OR `brand` LIKE 'DIODES INC.%' ) ) LIMIT 1 [ RunTime:0.001711s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6191 LIMIT 4 [ RunTime:0.000252s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6191 ORDER BY `minOrder` ASC [ RunTime:0.002142s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6191 ORDER BY `unit` DESC [ RunTime:0.002712s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6191 LIMIT 2 [ RunTime:0.000381s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6191 ORDER BY `minOrder` ASC [ RunTime:0.000161s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAT54S-7-F' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.001272s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16386 LIMIT 4 [ RunTime:0.001280s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16386 ORDER BY `minOrder` ASC [ RunTime:0.001338s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16386 ORDER BY `unit` DESC [ RunTime:0.000690s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16386 LIMIT 2 [ RunTime:0.000717s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16386 ORDER BY `minOrder` ASC [ RunTime:0.000296s ]
select * from pdf where partno='BAT54S-7-F' and brandshort='MULTICOMP PRO' limit 1 [ RunTime:0.001045s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAT54S-7-F' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.000180s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15366 LIMIT 4 [ RunTime:0.000247s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15366 ORDER BY `minOrder` ASC [ RunTime:0.000439s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15366 ORDER BY `unit` DESC [ RunTime:0.002287s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15366 LIMIT 2 [ RunTime:0.000347s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15366 ORDER BY `minOrder` ASC [ RunTime:0.000492s ]
select * from pdf where partno='BAT54S-7-F' and brandshort='MULTICOMP PRO' limit 1 [ RunTime:0.000253s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'BAT54S-7-F' OR `brand` LIKE 'MULTICOMP PRO%' ) ) LIMIT 1 [ RunTime:0.000171s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'BAT54S-7-F%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.000724s ]