创建文章列表的常用sql

DROP TABLE IF EXISTS `article`;
CREATE TABLE `article` (
id int unsigned NOT NULL auto_increment,
title varchar(200) DEFAULT NULL,
catagory varchar(20) DEFAULT NULL,
content text DEFAULT NULL,
sendDate datetime DEFAULT NULL,
PRIMARY KEY (id)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;

你可能感兴趣的:(sql)