日期:2014-05-16 浏览次数:20704 次
CREATE TABLE IF NOT EXISTS `ceshi` ( `id` int(10) NOT NULL AUTO_INCREMENT, `link` varchar(255) DEFAULT NULL COMMENT '源文地址', `title` varchar(255) DEFAULT NULL COMMENT '标题', `description` text, `create_time` varchar(255) DEFAULT NULL COMMENT '发布时间', `addtime` varchar(255) DEFAULT NULL COMMENT '收录时间', `source` varchar(255) DEFAULT NULL COMMENT '来源', `keyword` varchar(255) DEFAULT NULL COMMENT '关键字', `tonality` varchar(255) DEFAULT NULL, `focus` varchar(255) DEFAULT NULL, `brand` varchar(255) DEFAULT NULL, `item_id` int(10) NOT NULL DEFAULT '2', `create_user` varchar(100) NOT NULL, `pub_time` varchar(100) NOT NULL, `modify_time` varchar(100) NOT NULL, `media` varchar(100) NOT NULL, `is_deal` varchar(20) NOT NULL, PRIMARY KEY (`id`), KEY `title` (`title`), KEY `item_id` (`item_id`), KEY `source` (`source`), KEY `keyword` (`keyword`), KEY `title_2` (`item_id`,`title`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=41904 ;
SELECT * FROM `cj` WHERE item_id = '2' AND title like'%4岁小孩子的心声%' LIMIT 0,20
SELECT * FROM `cj` WHERE item_id = '2' AND title like'%4岁小孩子的心声%' order by title LIMIT 0,20