表结构:
CREATE TABLE `blogs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`blog` text,
`status` enum('published','draft','trash') DEFAULT NULL,
PRIMARY KEY (`id`)
)
希望查询显示结果如下:
published draft trash
-----------------------------
3 5 1
-----------------------------