SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001139s ]
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 'PIC18F85J90T-I/PT%' OR `brand` LIKE 'PIC18F85J90T-I/PT%' ) ) AND ( (s.platform = 1) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.024990s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.007843s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15340345 LIMIT 5 [ RunTime:0.030767s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.025625s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15340345 ORDER BY `minOrder` ASC [ RunTime:0.009091s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001515s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15340345 ORDER BY `unit` DESC [ RunTime:0.017944s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.001730s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15340345 LIMIT 2 [ RunTime:0.015037s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15340345 ORDER BY `minOrder` ASC [ RunTime:0.020447s ]
select * from pdf where partno='PIC18F85J90T-I/PT' and brandshort='Microchip Technology' limit 1 [ RunTime:0.012779s ]
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 'PIC18F85J90T-I/PT%' OR `brand` LIKE 'PIC18F85J90T-I/PT%' ) ) AND `s`.`platform` = '2' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.017206s ]
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 'PIC18F85J90T-I/PT%' OR `brand` LIKE 'PIC18F85J90T-I/PT%' ) ) AND `s`.`platform` = '3' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.039246s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 63557798 LIMIT 5 [ RunTime:0.034776s ]
SELECT * FROM `stock_price` WHERE `stockid` = 63557798 ORDER BY `minOrder` ASC [ RunTime:0.008392s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 63557798 ORDER BY `unit` DESC [ RunTime:0.001919s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 63557798 LIMIT 2 [ RunTime:0.019085s ]
SELECT * FROM `stock_price` WHERE `stockid` = 63557798 ORDER BY `minOrder` ASC [ RunTime:0.012553s ]
select * from pdf where partno='PIC18F85J90T-I/PT' and brandshort='Microchip Technology' limit 1 [ RunTime:0.041592s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001208s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'PIC18F85J90T-I/PT' OR `brand` LIKE 'Microchip Technology%' ) ) LIMIT 1 [ RunTime:0.000252s ]
SELECT `id` FROM `stock` WHERE `id` <> 63557798 AND `partno` = 'PIC18F85J90T-I/PT' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%microchip technology%' ) [ RunTime:0.004697s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15340345 [ RunTime:0.004727s ]
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 'PIC18F85J90T-I/PT%' OR `brand` LIKE 'PIC18F85J90T-I/PT%' ) ) AND `s`.`platform` = '4' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.047756s ]
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 'PIC18F85J90T-I/PT%' OR `brand` LIKE 'PIC18F85J90T-I/PT%' ) ) AND `s`.`platform` = '5' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.063568s ]
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 'PIC18F85J90T-I/PT%' OR `brand` LIKE 'PIC18F85J90T-I/PT%' ) ) AND `s`.`platform` = '6' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.053951s ]
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 'PIC18F85J90T-I/PT%' OR `brand` LIKE 'PIC18F85J90T-I/PT%' ) ) AND `s`.`platform` = '7' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.181137s ]
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 'PIC18F85J90T-I/PT%' OR `brand` LIKE 'PIC18F85J90T-I/PT%' ) ) AND `s`.`platform` = '8' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.063823s ]
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 'PIC18F85J90T-I/PT%' OR `brand` LIKE 'PIC18F85J90T-I/PT%' ) ) AND `s`.`platform` = '9' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.052757s ]
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 'PIC18F85J90T-I/PT%' OR `brand` LIKE 'PIC18F85J90T-I/PT%' ) ) AND `s`.`platform` = '10' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.035184s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'PIC18F85J90T-I/PT%' OR `brand` LIKE 'PIC18F85J90T-I/PT%' ) ) AND ( (s.platform = 1) ) [ RunTime:0.074242s ]