SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001136s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000396s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.001234s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.186' ) [ RunTime:0.000216s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001156s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000192s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000188s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000150s ]
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.000280s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001045s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay IS NULL OR s.isDisplay = 1) ) AND ( `partno` LIKE 'TLP620-2%' AND `status` <> 2 ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.002615s ]
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 IS NULL OR s.isDisplay = 1) ) AND `s`.`id` IN ('6959862','8658658','8657529','1313','8658644','8658643','8658544','6959086','8660968','8660901','8660883','8660878','8656912','8656911','8656894','8656892','8655623','6959711','6959710','6958826') ORDER BY FIELD(s.id, 6959862,8658658,8657529,1313,8658644,8658643,8658544,6959086,8660968,8660901,8660883,8660878,8656912,8656911,8656894,8656892,8655623,6959711,6959710,6958826) [ RunTime:0.004823s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.000994s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6959862 LIMIT 4 [ RunTime:0.000429s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.000783s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959862 ORDER BY `minOrder` ASC [ RunTime:0.000245s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.003229s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6959862 ORDER BY `unit` DESC [ RunTime:0.000380s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002661s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6959862 LIMIT 2 [ RunTime:0.000264s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959862 ORDER BY `minOrder` ASC [ RunTime:0.000179s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658658 LIMIT 4 [ RunTime:0.000706s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658658 ORDER BY `minOrder` ASC [ RunTime:0.001924s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658658 ORDER BY `unit` DESC [ RunTime:0.002056s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658658 LIMIT 2 [ RunTime:0.000227s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658658 ORDER BY `minOrder` ASC [ RunTime:0.001463s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8657529 LIMIT 4 [ RunTime:0.000601s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8657529 ORDER BY `minOrder` ASC [ RunTime:0.001668s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8657529 ORDER BY `unit` DESC [ RunTime:0.000226s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8657529 LIMIT 2 [ RunTime:0.001500s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8657529 ORDER BY `minOrder` ASC [ RunTime:0.002262s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1313 LIMIT 4 [ RunTime:0.000247s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1313 ORDER BY `minOrder` ASC [ RunTime:0.000246s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1313 ORDER BY `unit` DESC [ RunTime:0.001318s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1313 LIMIT 2 [ RunTime:0.002018s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1313 ORDER BY `minOrder` ASC [ RunTime:0.003573s ]
select * from pdf where partno='TLP620-2' and brandshort='TOSHIBA' limit 1 [ RunTime:0.002272s ]
select foldpath,foldpath2,filename from pdf_file where id=335155 limit 1 [ RunTime:0.002129s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.001450s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TLP620-2' OR `brand` LIKE 'TOSHIBA%' ) ) LIMIT 1 [ RunTime:0.003288s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658644 LIMIT 4 [ RunTime:0.002809s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658644 ORDER BY `minOrder` ASC [ RunTime:0.002801s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658644 ORDER BY `unit` DESC [ RunTime:0.000420s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658644 LIMIT 2 [ RunTime:0.002252s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658644 ORDER BY `minOrder` ASC [ RunTime:0.003397s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658643 LIMIT 4 [ RunTime:0.000555s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658643 ORDER BY `minOrder` ASC [ RunTime:0.000398s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658643 ORDER BY `unit` DESC [ RunTime:0.002440s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658643 LIMIT 2 [ RunTime:0.005026s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658643 ORDER BY `minOrder` ASC [ RunTime:0.002019s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658544 LIMIT 4 [ RunTime:0.006541s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658544 ORDER BY `minOrder` ASC [ RunTime:0.001552s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658544 ORDER BY `unit` DESC [ RunTime:0.003283s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658544 LIMIT 2 [ RunTime:0.000399s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658544 ORDER BY `minOrder` ASC [ RunTime:0.001579s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6959086 LIMIT 4 [ RunTime:0.000614s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959086 ORDER BY `minOrder` ASC [ RunTime:0.002285s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6959086 ORDER BY `unit` DESC [ RunTime:0.000397s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6959086 LIMIT 2 [ RunTime:0.001592s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959086 ORDER BY `minOrder` ASC [ RunTime:0.002907s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8660968 LIMIT 4 [ RunTime:0.000814s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660968 ORDER BY `minOrder` ASC [ RunTime:0.000401s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8660968 ORDER BY `unit` DESC [ RunTime:0.003202s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8660968 LIMIT 2 [ RunTime:0.004465s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660968 ORDER BY `minOrder` ASC [ RunTime:0.000241s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8660901 LIMIT 4 [ RunTime:0.000612s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660901 ORDER BY `minOrder` ASC [ RunTime:0.002018s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8660901 ORDER BY `unit` DESC [ RunTime:0.003428s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8660901 LIMIT 2 [ RunTime:0.000386s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660901 ORDER BY `minOrder` ASC [ RunTime:0.001660s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8660883 LIMIT 4 [ RunTime:0.000674s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660883 ORDER BY `minOrder` ASC [ RunTime:0.002934s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8660883 ORDER BY `unit` DESC [ RunTime:0.000283s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8660883 LIMIT 2 [ RunTime:0.000247s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660883 ORDER BY `minOrder` ASC [ RunTime:0.000220s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8660878 LIMIT 4 [ RunTime:0.000585s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660878 ORDER BY `minOrder` ASC [ RunTime:0.000396s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8660878 ORDER BY `unit` DESC [ RunTime:0.002059s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8660878 LIMIT 2 [ RunTime:0.003314s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660878 ORDER BY `minOrder` ASC [ RunTime:0.000237s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8656912 LIMIT 4 [ RunTime:0.000733s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656912 ORDER BY `minOrder` ASC [ RunTime:0.001820s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8656912 ORDER BY `unit` DESC [ RunTime:0.003463s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8656912 LIMIT 2 [ RunTime:0.000407s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656912 ORDER BY `minOrder` ASC [ RunTime:0.001681s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8656911 LIMIT 4 [ RunTime:0.000441s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656911 ORDER BY `minOrder` ASC [ RunTime:0.003373s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8656911 ORDER BY `unit` DESC [ RunTime:0.000402s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8656911 LIMIT 2 [ RunTime:0.001875s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656911 ORDER BY `minOrder` ASC [ RunTime:0.003833s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8656894 LIMIT 4 [ RunTime:0.000629s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656894 ORDER BY `minOrder` ASC [ RunTime:0.000394s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8656894 ORDER BY `unit` DESC [ RunTime:0.002013s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8656894 LIMIT 2 [ RunTime:0.005175s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656894 ORDER BY `minOrder` ASC [ RunTime:0.000218s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8656892 LIMIT 4 [ RunTime:0.000511s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656892 ORDER BY `minOrder` ASC [ RunTime:0.001349s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8656892 ORDER BY `unit` DESC [ RunTime:0.003059s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8656892 LIMIT 2 [ RunTime:0.001306s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656892 ORDER BY `minOrder` ASC [ RunTime:0.001993s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8655623 LIMIT 4 [ RunTime:0.000461s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8655623 ORDER BY `minOrder` ASC [ RunTime:0.001109s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8655623 ORDER BY `unit` DESC [ RunTime:0.002820s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8655623 LIMIT 2 [ RunTime:0.000258s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8655623 ORDER BY `minOrder` ASC [ RunTime:0.001235s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6959711 LIMIT 4 [ RunTime:0.000433s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959711 ORDER BY `minOrder` ASC [ RunTime:0.003021s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6959711 ORDER BY `unit` DESC [ RunTime:0.002582s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6959711 LIMIT 2 [ RunTime:0.000231s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959711 ORDER BY `minOrder` ASC [ RunTime:0.000155s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6959710 LIMIT 4 [ RunTime:0.000235s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959710 ORDER BY `minOrder` ASC [ RunTime:0.002530s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6959710 ORDER BY `unit` DESC [ RunTime:0.000247s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6959710 LIMIT 2 [ RunTime:0.000232s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959710 ORDER BY `minOrder` ASC [ RunTime:0.002903s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6958826 LIMIT 4 [ RunTime:0.000479s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6958826 ORDER BY `minOrder` ASC [ RunTime:0.000235s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6958826 ORDER BY `unit` DESC [ RunTime:0.003006s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6958826 LIMIT 2 [ RunTime:0.000232s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6958826 ORDER BY `minOrder` ASC [ RunTime:0.002989s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `partno` LIKE 'TLP620-2%' AND `status` <> 2 ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.000217s ]