SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.001959s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000497s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002988s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.186' ) [ RunTime:0.000429s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.002552s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.000342s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 0 LIMIT 1 [ RunTime:0.000392s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 0 [ RunTime:0.000266s ]
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.000505s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.002520s ]
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.005305s ]
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.006767s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001074s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6959862 LIMIT 4 [ RunTime:0.000605s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001113s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959862 ORDER BY `minOrder` ASC [ RunTime:0.002265s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.003541s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6959862 ORDER BY `unit` DESC [ RunTime:0.002706s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.002413s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6959862 LIMIT 2 [ RunTime:0.000300s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959862 ORDER BY `minOrder` ASC [ RunTime:0.004035s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658658 LIMIT 4 [ RunTime:0.000500s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658658 ORDER BY `minOrder` ASC [ RunTime:0.000239s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658658 ORDER BY `unit` DESC [ RunTime:0.000245s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658658 LIMIT 2 [ RunTime:0.002336s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658658 ORDER BY `minOrder` ASC [ RunTime:0.002573s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8657529 LIMIT 4 [ RunTime:0.000450s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8657529 ORDER BY `minOrder` ASC [ RunTime:0.002984s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8657529 ORDER BY `unit` DESC [ RunTime:0.000237s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8657529 LIMIT 2 [ RunTime:0.000221s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8657529 ORDER BY `minOrder` ASC [ RunTime:0.000149s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 1313 LIMIT 4 [ RunTime:0.000216s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1313 ORDER BY `minOrder` ASC [ RunTime:0.002338s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 1313 ORDER BY `unit` DESC [ RunTime:0.001045s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 1313 LIMIT 2 [ RunTime:0.000335s ]
SELECT * FROM `stock_price` WHERE `stockid` = 1313 ORDER BY `minOrder` ASC [ RunTime:0.000272s ]
select * from pdf where partno='TLP620-2' and brandshort='TOSHIBA' limit 1 [ RunTime:0.009228s ]
select foldpath,foldpath2,filename from pdf_file where id=335155 limit 1 [ RunTime:0.002390s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002447s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'TLP620-2' OR `brand` LIKE 'TOSHIBA%' ) ) LIMIT 1 [ RunTime:0.010272s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658644 LIMIT 4 [ RunTime:0.000893s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658644 ORDER BY `minOrder` ASC [ RunTime:0.000355s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658644 ORDER BY `unit` DESC [ RunTime:0.002407s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658644 LIMIT 2 [ RunTime:0.004968s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658644 ORDER BY `minOrder` ASC [ RunTime:0.000311s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658643 LIMIT 4 [ RunTime:0.000402s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658643 ORDER BY `minOrder` ASC [ RunTime:0.000380s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658643 ORDER BY `unit` DESC [ RunTime:0.002015s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658643 LIMIT 2 [ RunTime:0.004621s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658643 ORDER BY `minOrder` ASC [ RunTime:0.000306s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8658544 LIMIT 4 [ RunTime:0.000576s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658544 ORDER BY `minOrder` ASC [ RunTime:0.000389s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8658544 ORDER BY `unit` DESC [ RunTime:0.000377s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8658544 LIMIT 2 [ RunTime:0.002351s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8658544 ORDER BY `minOrder` ASC [ RunTime:0.002465s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6959086 LIMIT 4 [ RunTime:0.000674s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959086 ORDER BY `minOrder` ASC [ RunTime:0.000388s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6959086 ORDER BY `unit` DESC [ RunTime:0.000380s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6959086 LIMIT 2 [ RunTime:0.001890s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959086 ORDER BY `minOrder` ASC [ RunTime:0.000759s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8660968 LIMIT 4 [ RunTime:0.001828s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660968 ORDER BY `minOrder` ASC [ RunTime:0.000451s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8660968 ORDER BY `unit` DESC [ RunTime:0.000678s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8660968 LIMIT 2 [ RunTime:0.000363s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660968 ORDER BY `minOrder` ASC [ RunTime:0.000288s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8660901 LIMIT 4 [ RunTime:0.000509s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660901 ORDER BY `minOrder` ASC [ RunTime:0.000320s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8660901 ORDER BY `unit` DESC [ RunTime:0.001758s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8660901 LIMIT 2 [ RunTime:0.000977s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660901 ORDER BY `minOrder` ASC [ RunTime:0.000662s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8660883 LIMIT 4 [ RunTime:0.000529s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660883 ORDER BY `minOrder` ASC [ RunTime:0.000468s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8660883 ORDER BY `unit` DESC [ RunTime:0.000884s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8660883 LIMIT 2 [ RunTime:0.000388s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660883 ORDER BY `minOrder` ASC [ RunTime:0.000292s ]
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.001523s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8660878 ORDER BY `unit` DESC [ RunTime:0.000393s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8660878 LIMIT 2 [ RunTime:0.000359s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8660878 ORDER BY `minOrder` ASC [ RunTime:0.000263s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8656912 LIMIT 4 [ RunTime:0.000625s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656912 ORDER BY `minOrder` ASC [ RunTime:0.000319s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8656912 ORDER BY `unit` DESC [ RunTime:0.003357s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8656912 LIMIT 2 [ RunTime:0.003736s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656912 ORDER BY `minOrder` ASC [ RunTime:0.000343s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8656911 LIMIT 4 [ RunTime:0.001304s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656911 ORDER BY `minOrder` ASC [ RunTime:0.010941s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8656911 ORDER BY `unit` DESC [ RunTime:0.003129s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8656911 LIMIT 2 [ RunTime:0.001460s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656911 ORDER BY `minOrder` ASC [ RunTime:0.000323s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8656894 LIMIT 4 [ RunTime:0.001459s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656894 ORDER BY `minOrder` ASC [ RunTime:0.001060s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8656894 ORDER BY `unit` DESC [ RunTime:0.000382s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8656894 LIMIT 2 [ RunTime:0.000310s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656894 ORDER BY `minOrder` ASC [ RunTime:0.000240s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8656892 LIMIT 4 [ RunTime:0.000458s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656892 ORDER BY `minOrder` ASC [ RunTime:0.001232s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8656892 ORDER BY `unit` DESC [ RunTime:0.004443s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8656892 LIMIT 2 [ RunTime:0.001832s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8656892 ORDER BY `minOrder` ASC [ RunTime:0.000307s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 8655623 LIMIT 4 [ RunTime:0.000514s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8655623 ORDER BY `minOrder` ASC [ RunTime:0.000324s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 8655623 ORDER BY `unit` DESC [ RunTime:0.001413s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 8655623 LIMIT 2 [ RunTime:0.002453s ]
SELECT * FROM `stock_price` WHERE `stockid` = 8655623 ORDER BY `minOrder` ASC [ RunTime:0.000293s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6959711 LIMIT 4 [ RunTime:0.000550s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959711 ORDER BY `minOrder` ASC [ RunTime:0.002093s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6959711 ORDER BY `unit` DESC [ RunTime:0.004338s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6959711 LIMIT 2 [ RunTime:0.000795s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959711 ORDER BY `minOrder` ASC [ RunTime:0.000251s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6959710 LIMIT 4 [ RunTime:0.000399s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959710 ORDER BY `minOrder` ASC [ RunTime:0.002715s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6959710 ORDER BY `unit` DESC [ RunTime:0.005826s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6959710 LIMIT 2 [ RunTime:0.003074s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6959710 ORDER BY `minOrder` ASC [ RunTime:0.000262s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 6958826 LIMIT 4 [ RunTime:0.000530s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6958826 ORDER BY `minOrder` ASC [ RunTime:0.000389s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 6958826 ORDER BY `unit` DESC [ RunTime:0.002823s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 6958826 LIMIT 2 [ RunTime:0.008494s ]
SELECT * FROM `stock_price` WHERE `stockid` = 6958826 ORDER BY `minOrder` ASC [ RunTime:0.000292s ]
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.000881s ]