CREATE TABLE IF NOT EXISTS `sw_asflow` (
  `id` int(10) NOT NULL auto_increment,
  `n_brand` varchar(50) NOT NULL,
  `seriesnum` varchar(100) NOT NULL,
  `cname` varchar(50) NOT NULL,
  `cidcard` varchar(50) NOT NULL,
  `ctel` varchar(50) NOT NULL,
  `state` varchar(50) NOT NULL,
  `stime` datetime default NULL,
  `etime` datetime default NULL,
  `addguy` varchar(20) NOT NULL,
  `addtime` datetime NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=gb2312 AUTO_INCREMENT=19 ;--
-- 导出表中的数据 `sw_asflow`
--INSERT INTO `sw_asflow` (`id`, `n_brand`, `seriesnum`, `cname`, `cidcard`, `ctel`, `state`, `stime`, `etime`, `addguy`, `addtime`) VALUES
(1, '诺基亚', '12312312', '张彦军', '41012619791108141X', '0371-65340070', '修理中', '2008-07-10 10:10:06', '2008-07-15 10:10:11', 'swallow', '2008-07-10 10:10:26'),
(2, '索尼爱立信', '312312', '123123', '12312312', '12312312', '检测中', '2008-07-01 00:00:00', '2008-07-10 00:00:00', 'SWALLOW', '2008-07-10 11:15:54'),
(3, '诺基亚', '12312312', '张彦军', '41012619791108141X', '0371-65340070', '修理中', '2008-07-10 10:10:06', '2008-07-15 10:10:11', 'swallow', '2008-07-10 10:10:26'),
(4, '索尼爱立信', '312312', '123123', '12312312', '12312312', '检测中', '2008-07-01 00:00:00', '2008-07-10 00:00:00', 'SWALLOW', '2008-07-10 11:15:54'),
(5, '诺基亚', '12312312', '张彦军', '41012619791108141X', '0371-65340070', '修理中', '2008-07-10 10:10:06', '2008-07-15 10:10:11', 'swallow', '2008-07-10 10:10:26'),
(6, '索尼爱立信', '312312', '123123', '12312312', '12312312', '检测中', '2008-07-01 00:00:00', '2008-07-10 00:00:00', 'SWALLOW', '2008-07-10 11:15:54'),
(7, '诺基亚', '12312312', '张彦军', '41012619791108141X', '0371-65340070', '修理中', '2008-07-10 10:10:06', '2008-07-15 10:10:11', 'swallow', '2008-07-10 10:10:26'),
(8, '索尼爱立信', '312312', '123123', '12312312', '12312312', '检测中', '2008-07-01 00:00:00', '2008-07-10 00:00:00', 'SWALLOW', '2008-07-10 11:15:54'),
(9, '诺基亚', '12312312', '张彦军', '41012619791108141X', '0371-65340070', '修理中', '2008-07-10 10:10:06', '2008-07-15 10:10:11', 'swallow', '2008-07-10 10:10:26'),
(10, '索尼爱立信', '312312', '123123', '12312312', '12312312', '检测中', '2008-07-01 00:00:00', '2008-07-10 00:00:00', 'SWALLOW', '2008-07-10 11:15:54'),
(11, '诺基亚', '12312312', '张彦军', '41012619791108141X', '0371-65340070', '修理中', '2008-07-10 10:10:06', '2008-07-15 10:10:11', 'swallow', '2008-07-10 10:10:26'),
(12, '索尼爱立信', '312312', '123123', '12312312', '12312312', '检测中', '2008-07-01 00:00:00', '2008-07-10 00:00:00', 'SWALLOW', '2008-07-10 11:15:54'),
(13, '诺基亚', '12312312', '张彦军', '41012619791108141X', '0371-65340070', '修理中', '2008-07-10 10:10:06', '2008-07-15 10:10:11', 'swallow', '2008-07-10 10:10:26'),
(14, '索尼爱立信', '312312', '123123', '12312312', '12312312', '检测中', '2008-07-01 00:00:00', '2008-07-10 00:00:00', 'SWALLOW', '2008-07-10 11:15:54'),
(15, '联想', '12312312', '张彦军', '41012619791108141X', '0371-65340070', '修理中', '2008-07-10 10:10:06', '2008-07-15 10:10:11', 'swallow', '2008-07-10 10:10:26'),
(16, '三星', '312312', '123123', '12312312', '12312312', '检测中', '2008-07-01 00:00:00', '2008-07-10 00:00:00', 'SWALLOW', '2008-07-10 11:15:54'),
(17, '诺基亚', '12312312', '张彦军', '41012619791108141X', '0371-65340070', '修理中', '2008-07-10 10:10:06', '2008-07-15 10:10:11', 'swallow', '2008-07-10 10:10:26'),
(18, '中兴', '312312', '123123', '12312312', '12312312', '检测中', '2008-07-01 00:00:00', '2008-07-10 00:00:00', 'SWALLOW', '2008-07-10 11:15:54');
这个表存的是用户的手机维修情况,现在要一条语句查出手机品牌,按保修数量从高到低排列。
就是说这个表里诺基亚最多,它就应该排第一位。