注册 登录
编程论坛 ASP技术论坛

查询日期问题

lili0610 发布于 2008-09-01 10:45, 698 次点击
[free]Select ID,BellID,SongName,SingerName,Price,AvailabilityDate,SpName,SingType,Region,DownloadsNumber,YearMonth from BellData where YearMonth = '2008-6-1' ORDER BY DownloadsNumber DESC
我这样能查询到内容.
我换成了
Select ID,BellID,SongName,SingerName,Price,AvailabilityDate,SpName,SingType,Region,DownloadsNumber,YearMonth from BellData where YearMonth like '%2008-6-15%' ORDER BY DownloadsNumber DESC
怎么就查询不到内容了呢?有没有知道啊 [/free]

[[it] 本帖最后由 lili0610 于 2008-9-1 11:37 编辑 [/it]]
1 回复
#2
tianyu1232008-09-01 20:01
你确定数据库中有包含 2008-6-15 这样的数据吗?
1