根据多个条件进行搜索!

一个数据库,里面有一个表<里面有“日期”、“姓名”、“主题”>,我想按条件比如:2002年11月10日至2002年12月10,姓名为“小马”的发表了多少“主题”。进行搜索,应该怎么写?极盼赐教!!!
---------------------------------------------------------------

select count(主题) from YourTable where 日期 between '2002-11-10' and '2002-12-10' and 姓名 = '小马'

Published At
Categories with Web编程
Tagged with
comments powered by Disqus