我想根据一段时间从表中取出两个字段的值。Sql语句为: Select dealday,price from Price where dealday>d1 and dealday<d2 我想完成的功能是:如果表中没有此时间段中某一天的纪录,那么查出的记录集中的price 字段设为Null,dealday=这一天,请问如何实现????谢谢!!
str="Select dealday,price from Price where dealday>d1 and dealday<d2"
rec.open str,cnn
if rec.eof then
rec!price=""
else
.....
end if
'''''''''''''''''''''''不过还是有点看不大懂你的意思:(
既然没有,怎么还能查出?