select count(*) from sqlite_master where type = 'table' and name = 'cpucode';
select 列名 1[, 列名 2, ...] from 表名 group by 列名
alter table cpucode add class text;
update cpucode set class='class_a' where name='cpu';
update cpucode set class='class_b' where name='code';
update cpucode set class='class_b' where name='test';
select class, count(*) from cpucode group by class;
select class, avg(score) from cpucode group by class;
select class, avg(score) from cpucode where class='class_a' group by class;
select 函数名(列名 1) [, 列名 2, ...] from 表名 group by 列名 having 函数名 限制值
select class, avg(score) from cpucode group by class having avg(score) >=80;