#2
kyln2008-08-09 14:38
|
程序代码:
CREATE TABLE article
(
ID int auto_increment,
title varchar(250) NOT NULL,
type int not null,
content text,
date timestamp not null,
primary key(id)
);
(
ID int auto_increment,
title varchar(250) NOT NULL,
type int not null,
content text,
date timestamp not null,
primary key(id)
);
type表示文章的分类.
现在想从每个分类中取出最新发布的5条记录,用一个SQL语句能不能实现呀?