是这样的..在数据到表中是这样录的:
ID(自动编号) date name field1 field2
-------------------------------------------------
1 2007-2-10 张三 text1 text2
2 2007-2-11 张三 text1 text2
3 2007-2-12 李四 text3 text4
4 2007-2-13 李四 text3 text4
...........当我在查询时候,如果选择时间段查询,比如查询2007-2-10到2007-2-11期间张三的数据,我想在查询结果中显示为如下的形式:
date name field1 field2
2007-2-10 2007-2-11 张三 text1 text2......我的查询是通过date,name,field1,field2四个字段任意组合查询的。(日期只一项的话就查询当日的,两项都选择的话,就查询日期段的信息)
ID(自动编号) date name field1 field2
-------------------------------------------------
1 2007-2-10 张三 text1 text2
2 2007-2-11 张三 text1 text2
3 2007-2-12 李四 text3 text4
4 2007-2-13 李四 text3 text4
...........当我在查询时候,如果选择时间段查询,比如查询2007-2-10到2007-2-11期间张三的数据,我想在查询结果中显示为如下的形式:
date name field1 field2
2007-2-10 2007-2-11 张三 text1 text2......我的查询是通过date,name,field1,field2四个字段任意组合查询的。(日期只一项的话就查询当日的,两项都选择的话,就查询日期段的信息)
date name field1 field2
2007-2-10 张三 text1 text2
高手帮忙呀..