SHOW FULL COLUMNS FROM `product_type` [ RunTime:0.002422s ]
SELECT `id`,`typeid`,`name`,`typestr` FROM `product_type` WHERE `id` NOT IN (11,12,13,14,15) AND `id` <= 750 [ RunTime:0.000647s ]
SHOW FULL COLUMNS FROM `o_cart` [ RunTime:0.002016s ]
SELECT COUNT(*) AS think_count FROM `o_cart` WHERE ( `userId` = 0 AND `visitIP` = '216.73.216.113' ) [ RunTime:0.001477s ]
SHOW FULL COLUMNS FROM `ad` [ RunTime:0.001713s ]
SELECT * FROM `ad` WHERE `isDisplay` = 1 [ RunTime:0.001199s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `id` = 26 LIMIT 1 [ RunTime:0.007819s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` = 26 [ RunTime:0.002685s ]
SELECT `id`,`typeid`,`name` FROM `product_type` WHERE `typeid` IN (160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186) [ RunTime:0.005360s ]
SHOW FULL COLUMNS FROM `stock` [ RunTime:0.001942s ]
SELECT COUNT(*) AS think_count FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE ( `status` = 4 AND `status` <> 2 AND `categoryid` IN (160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186) ) AND `u`.`lockUser` = '0' [ RunTime:0.002432s ]
SELECT `s`.`id` FROM `stock` `s` INNER JOIN `user` `u` ON `s`.`userid`=`u`.`stockuserid` WHERE `u`.`lockUser` = '0' AND ( (s.isDisplay = 1) ) AND ( `status` = 4 AND `status` <> 2 AND `categoryid` IN (160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186) ) ORDER BY `s`.`stockNum` DESC,`s`.`id` DESC LIMIT 0,20 [ RunTime:0.004372s ]
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 = 1) ) AND `s`.`id` IN ('15966','15928','15916','15831','15486','15388','15331','15182') ORDER BY FIELD(s.id, 15966,15928,15916,15831,15486,15388,15331,15182) [ RunTime:0.004300s ]
SHOW FULL COLUMNS FROM `stock_pra` [ RunTime:0.001403s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15966 LIMIT 4 [ RunTime:0.000344s ]
SHOW FULL COLUMNS FROM `stock_price` [ RunTime:0.001190s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15966 ORDER BY `minOrder` ASC [ RunTime:0.010223s ]
SHOW FULL COLUMNS FROM `stock_unitquantity` [ RunTime:0.001607s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15966 ORDER BY `unit` DESC [ RunTime:0.004715s ]
SHOW FULL COLUMNS FROM `stock_warehousequantity` [ RunTime:0.003954s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15966 LIMIT 2 [ RunTime:0.003845s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15966 ORDER BY `minOrder` ASC [ RunTime:0.002951s ]
select * from pdf where partno='AQV252G' and brandshort='PANASONIC' limit 1 [ RunTime:0.005353s ]
select foldpath,foldpath2,filename from pdf_file where id=1746134 limit 1 [ RunTime:0.014190s ]
SHOW FULL COLUMNS FROM `stock_pra_lib` [ RunTime:0.002609s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'AQV252G' OR `brand` LIKE 'PANASONIC%' ) ) LIMIT 1 [ RunTime:0.012269s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15928 LIMIT 4 [ RunTime:0.000361s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15928 ORDER BY `minOrder` ASC [ RunTime:0.000359s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15928 ORDER BY `unit` DESC [ RunTime:0.001807s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15928 LIMIT 2 [ RunTime:0.009371s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15928 ORDER BY `minOrder` ASC [ RunTime:0.005817s ]
select * from pdf where partno='AQY212SX.' and brandshort='PANASONIC' limit 1 [ RunTime:0.004031s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'AQY212SX.' OR `brand` LIKE 'PANASONIC%' ) ) LIMIT 1 [ RunTime:0.020418s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15916 LIMIT 4 [ RunTime:0.009563s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15916 ORDER BY `minOrder` ASC [ RunTime:0.000672s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15916 ORDER BY `unit` DESC [ RunTime:0.011901s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15916 LIMIT 2 [ RunTime:0.004477s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15916 ORDER BY `minOrder` ASC [ RunTime:0.007818s ]
select * from pdf where partno='G5RL-1A-E-HR DC12' and brandshort='OMRON ELECTRONIC COMPONENTS' limit 1 [ RunTime:0.013964s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'G5RL-1A-E-HR DC12' OR `brand` LIKE 'OMRON ELECTRONIC COMPONENTS%' ) ) LIMIT 1 [ RunTime:0.010055s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15831 LIMIT 4 [ RunTime:0.005000s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15831 ORDER BY `minOrder` ASC [ RunTime:0.004253s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15831 ORDER BY `unit` DESC [ RunTime:0.007222s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15831 LIMIT 2 [ RunTime:0.002883s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15831 ORDER BY `minOrder` ASC [ RunTime:0.001496s ]
select * from pdf where partno='95.85.3SMA' and brandshort='FINDER' limit 1 [ RunTime:0.005985s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '95.85.3SMA' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.008747s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15486 LIMIT 4 [ RunTime:0.004513s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15486 ORDER BY `minOrder` ASC [ RunTime:0.003336s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15486 ORDER BY `unit` DESC [ RunTime:0.008667s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15486 LIMIT 2 [ RunTime:0.006063s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15486 ORDER BY `minOrder` ASC [ RunTime:0.000220s ]
select * from pdf where partno='AQY211G2S' and brandshort='PANASONIC' limit 1 [ RunTime:0.000586s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = 'AQY211G2S' OR `brand` LIKE 'PANASONIC%' ) ) LIMIT 1 [ RunTime:0.013287s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15388 LIMIT 4 [ RunTime:0.000661s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15388 ORDER BY `minOrder` ASC [ RunTime:0.001391s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15388 ORDER BY `unit` DESC [ RunTime:0.000451s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15388 LIMIT 2 [ RunTime:0.017006s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15388 ORDER BY `minOrder` ASC [ RunTime:0.002447s ]
select * from pdf where partno='2342-12-000' and brandshort='COTO TECHNOLOGY' limit 1 [ RunTime:0.004910s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '2342-12-000' OR `brand` LIKE 'COTO TECHNOLOGY%' ) ) LIMIT 1 [ RunTime:0.003298s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15331 LIMIT 4 [ RunTime:0.000278s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15331 ORDER BY `minOrder` ASC [ RunTime:0.000352s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15331 ORDER BY `unit` DESC [ RunTime:0.007703s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15331 LIMIT 2 [ RunTime:0.003347s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15331 ORDER BY `minOrder` ASC [ RunTime:0.000758s ]
select * from pdf where partno='34.51.7.012.0010' and brandshort='FINDER' limit 1 [ RunTime:0.004504s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '34.51.7.012.0010' OR `brand` LIKE 'FINDER%' ) ) LIMIT 1 [ RunTime:0.020922s ]
SELECT * FROM `stock_pra` WHERE `stockid` = 15182 LIMIT 4 [ RunTime:0.005346s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15182 ORDER BY `minOrder` ASC [ RunTime:0.006121s ]
SELECT * FROM `stock_unitquantity` WHERE `stockid` = 15182 ORDER BY `unit` DESC [ RunTime:0.017120s ]
SELECT * FROM `stock_warehousequantity` WHERE `stockid` = 15182 LIMIT 2 [ RunTime:0.001045s ]
SELECT * FROM `stock_price` WHERE `stockid` = 15182 ORDER BY `minOrder` ASC [ RunTime:0.007521s ]
select * from pdf where partno='779006-01' and brandshort='NI' limit 1 [ RunTime:0.002642s ]
SELECT `pra` FROM `stock_pra_lib` WHERE ( ( `partno` = '779006-01' OR `brand` LIKE 'NI%' ) ) LIMIT 1 [ RunTime:0.015626s ]
SELECT brand, count(*) as count FROM `stock` WHERE ( `status` = 4 AND `status` <> 2 AND `categoryid` IN (160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186) ) AND `brand` IS NOT NULL AND `brand` <> '' GROUP BY `brand` ORDER BY `count` DESC LIMIT 10000 [ RunTime:0.001857s ]