SHOW FULL COLUMNS FROM `stock` [ RunTime:0.003002s ]
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` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'ICB12L50N10PC%' OR `brand` LIKE 'ICB12L50N10PC%' ) ) AND ( (s.platform = 1) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.017757s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001618s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 18793233 LIMIT 5 [ RunTime:0.017297s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.000986s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18793233 ORDER BY `minOrder` ASC [ RunTime:0.006991s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001037s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 18793233 ORDER BY `unit` DESC [ RunTime:0.025319s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.003026s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 18793233 LIMIT 2 [ RunTime:0.015768s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18793233 ORDER BY `minOrder` ASC [ RunTime:0.011580s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 18793232 LIMIT 5 [ RunTime:0.022428s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18793232 ORDER BY `minOrder` ASC [ RunTime:0.029273s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 18793232 ORDER BY `unit` DESC [ RunTime:0.021649s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 18793232 LIMIT 2 [ RunTime:0.031048s ]
SELECT * FROM `stock_price` WHERE `stockid` = 18793232 ORDER BY `minOrder` ASC [ RunTime:0.015089s ]
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` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'ICB12L50N10PC%' OR `brand` LIKE 'ICB12L50N10PC%' ) ) AND `s`.`platform` = '2' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.026273s ]
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` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'ICB12L50N10PC%' OR `brand` LIKE 'ICB12L50N10PC%' ) ) AND `s`.`platform` = '3' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.049519s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 57967673 LIMIT 5 [ RunTime:0.005452s ]
SELECT * FROM `stock_price` WHERE `stockid` = 57967673 ORDER BY `minOrder` ASC [ RunTime:0.051144s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 57967673 ORDER BY `unit` DESC [ RunTime:0.029689s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 57967673 LIMIT 2 [ RunTime:0.027255s ]
SELECT * FROM `stock_price` WHERE `stockid` = 57967673 ORDER BY `minOrder` ASC [ RunTime:0.013798s ]
select * from pdf where partno='ICB12L50N10PCM1' and brandshort='Carlo Gavazzi Inc.' limit 1 [ RunTime:0.043418s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002727s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ICB12L50N10PCM1' OR `brand` LIKE 'Carlo Gavazzi Inc.%' ) ) LIMIT 1 [ RunTime:0.023350s ]
SELECT `id` FROM `stock` WHERE `id` <> 57967673 AND `partno` = 'ICB12L50N10PCM1' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%carlo gavazzi inc.%' ) [ RunTime:0.059324s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 18793233 [ RunTime:0.028298s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 57967672 LIMIT 5 [ RunTime:0.040731s ]
SELECT * FROM `stock_price` WHERE `stockid` = 57967672 ORDER BY `minOrder` ASC [ RunTime:0.025425s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 57967672 ORDER BY `unit` DESC [ RunTime:0.032122s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 57967672 LIMIT 2 [ RunTime:0.031589s ]
SELECT * FROM `stock_price` WHERE `stockid` = 57967672 ORDER BY `minOrder` ASC [ RunTime:0.011102s ]
select * from pdf where partno='ICB12L50N10PC' and brandshort='Carlo Gavazzi Inc.' limit 1 [ RunTime:0.028848s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'ICB12L50N10PC' OR `brand` LIKE 'Carlo Gavazzi Inc.%' ) ) LIMIT 1 [ RunTime:0.050365s ]
SELECT `id` FROM `stock` WHERE `id` <> 57967672 AND `partno` = 'ICB12L50N10PC' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%carlo gavazzi inc.%' ) [ RunTime:0.025429s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 18793232 [ RunTime:0.045633s ]
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` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'ICB12L50N10PC%' OR `brand` LIKE 'ICB12L50N10PC%' ) ) AND `s`.`platform` = '4' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.079501s ]
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` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'ICB12L50N10PC%' OR `brand` LIKE 'ICB12L50N10PC%' ) ) AND `s`.`platform` = '5' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.037556s ]
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` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'ICB12L50N10PC%' OR `brand` LIKE 'ICB12L50N10PC%' ) ) AND `s`.`platform` = '6' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.042952s ]
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` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'ICB12L50N10PC%' OR `brand` LIKE 'ICB12L50N10PC%' ) ) AND `s`.`platform` = '7' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.040318s ]
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` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'ICB12L50N10PC%' OR `brand` LIKE 'ICB12L50N10PC%' ) ) AND `s`.`platform` = '8' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.041894s ]
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` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'ICB12L50N10PC%' OR `brand` LIKE 'ICB12L50N10PC%' ) ) AND `s`.`platform` = '9' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.047780s ]
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` LEFT JOIN `product_type` `t` ON `t`.`id`=`s`.`categoryid` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'ICB12L50N10PC%' OR `brand` LIKE 'ICB12L50N10PC%' ) ) AND `s`.`platform` = '10' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.076229s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'ICB12L50N10PC%' OR `brand` LIKE 'ICB12L50N10PC%' ) ) AND ( (s.platform = 1) ) [ RunTime:0.049190s ]