求条查询语句。很简单的!但是自己不会!急!在线等待
现在在foxprox2.5下。。有个库.gdk.dbf。我要在里面找出在这个月里面增加的记录。然后在统计一下有多少条/日期的字段:date.19990630。就是前面这样的格式了!给分!给分!
问题点数:0、回复次数:3Top
1 楼yoki(小马哥--鬓微霜,又何妨)回复于 2003-12-03 14:22:59 得分 0
select * from t where left(date,6)='199906'
select count(*) from t where left(date,6)='199906'Top
2 楼fuchong(冲儿)回复于 2003-12-03 14:49:04 得分 0
yoki(小马哥) ( )
用了你的。报这样的错误是什么原因啊!
missing )Top
3 楼changechange(http://access911.net 是我的个人网站,欢迎光临)回复于 2003-12-03 21:01:36 得分 0
可以使用以下代码创建查询
select * from t where left([date],6)=format(date(),"yyyymm")
select count(*) from t where left([date],6)=format(date(),"yyyymm")
来查询当月得数据。
注意:上述语句只能运行在MICROSOFT OFFICE Access环境中
Top




