为了系统的可扩充性,
建议你使用
date, name, data
20040130 甲 54
20040130 甲 56
20040130 甲 39
.
.
.如果一切都是固定的.
那采用第一种可能会好一些..
建议你使用
date, name, data
20040130 甲 54
20040130 甲 56
20040130 甲 39
.
.
.如果一切都是固定的.
那采用第一种可能会好一些..
解决方案 »
- MySQL after触发器问题请教
- mysql不使用root账密能否强制导出数据库?..
- 求高手帮忙,我想模糊替换字段的中的部分字符
- 重装mysql时发生发生错误cannot create windows service for mysql.error:0
- 求毕业设计:一个文献管理系统
- 现在需统计近1,2,7,30 天 当前月,上个月 bandwinds数? 请高手指教!!!
- Linux下MySQL数据导出问题.
- 在Linux下用C语言编写MySQL服务器的接口应用程序中链接库时出现的问题
- MySql 1064错误 函数
- 远程或者本地连接MySQL时报错1130 host is not allowed to connect to this mysql server
- 用mysql-Front把myisam表更改为innodb表,需要配置my.ini或者my.cnf吗?
- 为什么 MYSQL 在WIN2003中装不上?用什么方法可以装上啊 ?
20040130 甲 54 1
20040130 甲 56 2
20040130 甲 39 3
.
.
.
.
id name score date
1 甲 54 2004-01-29
2 甲 56 2004-01-29
3 甲 39 2004-01-29
4 乙 39 2004-01-29
.
.
.
依次类推
对于第一个要求用
select AVG(score) as score from table1 where date="2004-01-29" group by name;
对于第二个要求用
select AVG(score) as score from table1 where date="2004-01-29";
对于第三个要求用
select count(*) from table1 where date="2004-01-29" and name="甲" and score>50;