SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002503s ]
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 'PIC16F17125-I/ST%' OR `brand` LIKE 'PIC16F17125-I/ST%' ) ) AND ( (s.platform = 1) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.020156s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.003090s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15333927 LIMIT 5 [ RunTime:0.012255s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.002829s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15333927 ORDER BY `minOrder` ASC [ RunTime:0.006323s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.006801s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15333927 ORDER BY `unit` DESC [ RunTime:0.005488s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.005468s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15333927 LIMIT 2 [ RunTime:0.006069s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15333927 ORDER BY `minOrder` ASC [ RunTime:0.003143s ]
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 'PIC16F17125-I/ST%' OR `brand` LIKE 'PIC16F17125-I/ST%' ) ) AND `s`.`platform` = '2' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.009200s ]
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 'PIC16F17125-I/ST%' OR `brand` LIKE 'PIC16F17125-I/ST%' ) ) AND `s`.`platform` = '3' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.024678s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 63556940 LIMIT 5 [ RunTime:0.003491s ]
SELECT * FROM `stock_price` WHERE `stockid` = 63556940 ORDER BY `minOrder` ASC [ RunTime:0.019261s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 63556940 ORDER BY `unit` DESC [ RunTime:0.005034s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 63556940 LIMIT 2 [ RunTime:0.005146s ]
SELECT * FROM `stock_price` WHERE `stockid` = 63556940 ORDER BY `minOrder` ASC [ RunTime:0.001687s ]
select * from pdf where partno='PIC16F17125-I/ST' and brandshort='Microchip Technology' limit 1 [ RunTime:0.028363s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002413s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'PIC16F17125-I/ST' OR `brand` LIKE 'Microchip Technology%' ) ) LIMIT 1 [ RunTime:0.020105s ]
SELECT `id` FROM `stock` WHERE `id` <> 63556940 AND `partno` = 'PIC16F17125-I/ST' AND `lockUser` = 0 AND ( LOWER(brand) LIKE '%microchip technology%' ) [ RunTime:0.000954s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15333927 [ RunTime:0.000634s ]
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 'PIC16F17125-I/ST%' OR `brand` LIKE 'PIC16F17125-I/ST%' ) ) AND `s`.`platform` = '4' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.013423s ]
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 'PIC16F17125-I/ST%' OR `brand` LIKE 'PIC16F17125-I/ST%' ) ) AND `s`.`platform` = '5' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.011467s ]
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 'PIC16F17125-I/ST%' OR `brand` LIKE 'PIC16F17125-I/ST%' ) ) AND `s`.`platform` = '6' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.010099s ]
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 'PIC16F17125-I/ST%' OR `brand` LIKE 'PIC16F17125-I/ST%' ) ) AND `s`.`platform` = '7' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.039260s ]
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 'PIC16F17125-I/ST%' OR `brand` LIKE 'PIC16F17125-I/ST%' ) ) AND `s`.`platform` = '8' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.000971s ]
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 'PIC16F17125-I/ST%' OR `brand` LIKE 'PIC16F17125-I/ST%' ) ) AND `s`.`platform` = '9' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.013938s ]
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 'PIC16F17125-I/ST%' OR `brand` LIKE 'PIC16F17125-I/ST%' ) ) AND `s`.`platform` = '10' ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.010746s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` WHERE ( `lockUser` = 0 AND `isDisplay` = 1 AND ( `partno` LIKE 'PIC16F17125-I/ST%' OR `brand` LIKE 'PIC16F17125-I/ST%' ) ) AND ( (s.platform = 1) ) [ RunTime:0.004093s ]