我也问一个sql querry的问题# Database - 数据库
s*f
1 楼
比如table是这样的
id-----year-----month------score
1-----2000-------1----------100
2-----2000-------1----------100
2-----2000-------2----------300
2-----2000-------3----------300
3-----2000-------3----------200
....
如果我想找出2000年2月和3月都有记录而且相等的id,请问这个query怎么写法? 谢谢
id-----year-----month------score
1-----2000-------1----------100
2-----2000-------1----------100
2-----2000-------2----------300
2-----2000-------3----------300
3-----2000-------3----------200
....
如果我想找出2000年2月和3月都有记录而且相等的id,请问这个query怎么写法? 谢谢