SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002102s ]
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 'MMS-123-02-L-DV-M-TR%' OR `brand` LIKE 'MMS-123-02-L-DV-M-TR%' ) ) AND ( (s.platform = 1) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.035781s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.002859s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11543259 LIMIT 5 [ RunTime:0.038053s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002151s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11543259 ORDER BY `minOrder` ASC [ RunTime:0.053411s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.002332s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 11543259 ORDER BY `unit` DESC [ RunTime:0.041396s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.010876s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 11543259 LIMIT 2 [ RunTime:0.020408s ]
SELECT * FROM `stock_price` WHERE `stockid` = 11543259 ORDER BY `minOrder` ASC [ RunTime:0.033220s ]
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 'MMS-123-02-L-DV-M-TR%' OR `brand` LIKE 'MMS-123-02-L-DV-M-TR%' ) ) AND `s`.`platform` = '2' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.065131s ]
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 'MMS-123-02-L-DV-M-TR%' OR `brand` LIKE 'MMS-123-02-L-DV-M-TR%' ) ) AND `s`.`platform` = '3' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.023695s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 52983400 LIMIT 5 [ RunTime:0.024130s ]
SELECT * FROM `stock_price` WHERE `stockid` = 52983400 ORDER BY `minOrder` ASC [ RunTime:0.040781s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 52983400 ORDER BY `unit` DESC [ RunTime:0.002025s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 52983400 LIMIT 2 [ RunTime:0.024110s ]
SELECT * FROM `stock_price` WHERE `stockid` = 52983400 ORDER BY `minOrder` ASC [ RunTime:0.007688s ]
select * from pdf where partno='MMS-123-02-L-DV-M-TR' and brandshort='Samtec Inc.' limit 1 [ RunTime:0.002377s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002349s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'MMS-123-02-L-DV-M-TR' OR `brand` LIKE 'Samtec Inc.%' ) ) LIMIT 1 [ RunTime:0.035406s ]
SELECT `id` FROM `stock` WHERE `id` <> 52983400 AND `partno` = 'MMS-123-02-L-DV-M-TR' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%samtec inc.%' ) [ RunTime:0.046270s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 11543259 [ RunTime:0.005973s ]
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 'MMS-123-02-L-DV-M-TR%' OR `brand` LIKE 'MMS-123-02-L-DV-M-TR%' ) ) AND `s`.`platform` = '4' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.054441s ]
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 'MMS-123-02-L-DV-M-TR%' OR `brand` LIKE 'MMS-123-02-L-DV-M-TR%' ) ) AND `s`.`platform` = '5' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.032869s ]
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 'MMS-123-02-L-DV-M-TR%' OR `brand` LIKE 'MMS-123-02-L-DV-M-TR%' ) ) AND `s`.`platform` = '6' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.024762s ]
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 'MMS-123-02-L-DV-M-TR%' OR `brand` LIKE 'MMS-123-02-L-DV-M-TR%' ) ) AND `s`.`platform` = '7' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.018062s ]
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 'MMS-123-02-L-DV-M-TR%' OR `brand` LIKE 'MMS-123-02-L-DV-M-TR%' ) ) AND `s`.`platform` = '8' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.021092s ]
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 'MMS-123-02-L-DV-M-TR%' OR `brand` LIKE 'MMS-123-02-L-DV-M-TR%' ) ) AND `s`.`platform` = '9' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.047876s ]
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 'MMS-123-02-L-DV-M-TR%' OR `brand` LIKE 'MMS-123-02-L-DV-M-TR%' ) ) AND `s`.`platform` = '10' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.035830s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'MMS-123-02-L-DV-M-TR%' OR `brand` LIKE 'MMS-123-02-L-DV-M-TR%' ) ) AND ( (s.platform = 1) ) [ RunTime:0.032742s ]