SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001090s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000380s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001336s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.210' ) [ RunTime:0.000223s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001221s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000209s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000224s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000181s ]
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.000481s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001208s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `partno` LIKE 'IPL1-102-01-L-S-K%' AND `status` <> 2 ) AND `u`.`lockUser` = '0' [ RunTime:0.001827s ]
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 'IPL1-102-01-L-S-K%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.000521s ]
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 ('6156984','16868','15849','8383') ORDER BY FIELD(s.id, 6156984,16868,15849,8383) [ RunTime:0.001096s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001587s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6156984 LIMIT 4 [ RunTime:0.000554s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.004742s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6156984 ORDER BY `minOrder` ASC [ RunTime:0.000367s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.002138s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6156984 ORDER BY `unit` DESC [ RunTime:0.000314s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002589s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6156984 LIMIT 2 [ RunTime:0.000354s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6156984 ORDER BY `minOrder` ASC [ RunTime:0.000192s ]
select * from pdf where partno='IPL1-102-01-L-S-K' and brandshort='Samtec Inc.' limit 1 [ RunTime:0.006920s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 16868 LIMIT 4 [ RunTime:0.002966s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16868 ORDER BY `minOrder` ASC [ RunTime:0.002242s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 16868 ORDER BY `unit` DESC [ RunTime:0.001099s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 16868 LIMIT 2 [ RunTime:0.001900s ]
SELECT * FROM `stock_price` WHERE `stockid` = 16868 ORDER BY `minOrder` ASC [ RunTime:0.001459s ]
select * from pdf where partno='IPL1-102-01-L-S-K' and brandshort='SAMTEC' limit 1 [ RunTime:0.001426s ]
select foldpath,foldpath2,filename from pdf_file where id=1604622 limit 1 [ RunTime:0.002206s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002184s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'IPL1-102-01-L-S-K' OR `brand` LIKE 'SAMTEC%' ) ) LIMIT 1 [ RunTime:0.004481s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15849 LIMIT 4 [ RunTime:0.000822s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15849 ORDER BY `minOrder` ASC [ RunTime:0.000733s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15849 ORDER BY `unit` DESC [ RunTime:0.000316s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15849 LIMIT 2 [ RunTime:0.000280s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15849 ORDER BY `minOrder` ASC [ RunTime:0.000188s ]
select * from pdf where partno='IPL1-102-01-L-S-K' and brandshort='SAMTEC' limit 1 [ RunTime:0.000291s ]
select foldpath,foldpath2,filename from pdf_file where id=1604622 limit 1 [ RunTime:0.000181s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'IPL1-102-01-L-S-K' OR `brand` LIKE 'SAMTEC%' ) ) LIMIT 1 [ RunTime:0.000203s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8383 LIMIT 4 [ RunTime:0.000471s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8383 ORDER BY `minOrder` ASC [ RunTime:0.000828s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8383 ORDER BY `unit` DESC [ RunTime:0.002305s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8383 LIMIT 2 [ RunTime:0.002496s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8383 ORDER BY `minOrder` ASC [ RunTime:0.004351s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'IPL1-102-01-L-S-K' OR `brand` LIKE 'SAMTEC%' ) ) LIMIT 1 [ RunTime:0.000429s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'IPL1-102-01-L-S-K%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.003180s ]