account :用户名
product :购买的商品
quantity:购买的数量
product :购买的商品
quantity:购买的数量
解决方案 »
- 下的fastcgi x86的无法安装
- 关于采集后对数据编码转换的问题!请教!
- NUSOAP在PHP5下出错“SoapClient::SoapClient() expects parameter 2 to be array”
- php 与守护进程交互
- 问个session过期的问题
- 请教一个简单的PHP问题,限时结帖
- 散88分。如何提取出里面的URL地址
- 求救:如何读取From传递的循环变量?
- 救命啊!关于COOKIE的问题,特急!!!!求求各位大侠了解!!!
- 为什么一个php页面只有一个字母,但是访问的时候却会被加上<!DOCTYPE>
- PHP+MYSQL怎么样移动游标
- MYSQL中字段相加填充的问题
order表
select distinct a.bkName,a.ID,sum(b.ordCount) as saleCount from book a inner join order b on b.bkID=a.ID group by b.bkID order by saleCount desc";
`product` varchar(100) not null default '',
`quantity` int(10) not null default 0,
primary key(`product`)
)type=myisam";
$query=mysql_query($m_sql);
$m_sql="insert into sort select product,count(quantity) group by product";
$m_query=mysql_query($m_sql);
$sql="select * from sort order by quantity desc limit 0,10";
$query=mysql_query($sql);