sql语句问题,求助!!!!
从数据库表news中找出七天前到今天的所有记录。sql语句该怎么写????????????? 问题点数:20、回复次数:5Top
1 楼xxuu503(中国没有prison break只是因为the company不让拍)回复于 2006-05-01 21:31:29 得分 0
select * from table where DateDiff(day,getdate(),date字段)>7Top
2 楼xxuu503(中国没有prison break只是因为the company不让拍)回复于 2006-05-01 21:31:34 得分 0
select * from table where DateDiff(day,getdate(),date字段)>7Top
3 楼xxuu503(中国没有prison break只是因为the company不让拍)回复于 2006-05-01 21:32:38 得分 0
select * from news where DateDiff(day,getdate(),UpdateTime)>7Top
4 楼manbudezhu(漫步的猪)回复于 2006-05-01 21:39:02 得分 0
我这条语句错在哪里了??????????
sql="select * from News where typeid=15 and bigclassid=43 and DateDiff(day,getdate(),data(UpdateTime)>7"Top
5 楼xxuu503(中国没有prison break只是因为the company不让拍)回复于 2006-05-01 22:08:48 得分 0
看你什么数据库了
如果access就是nowTop




