DM.ClientDataSet.CommandText:='select Lcustomer.标识号,Lcustomer.到期日期 FROM LCustomer WHERE LCustomer.客户状态 = ''正在使用'' and '+'Lcustomer.到期日期 <= DateTimeEdit1.time';和 DM.ClientDataSet.CommandText:='select Lcustomer.标识号,Lcustomer.到期日期 FROM LCustomer WHERE LCustomer.客户状态 = ''正在使用'' and '+'Lcustomer.到期日期 >= DateTimeEdit1.time';为什么上面那个查不出资料,而下面这条语句能正常显示。难道>和<在SQLServer中有不同的定义吗?求高人指点,在线等,急。搞不出来就不能回去睡觉了啊!
可能由于你没有指定其时间,由于这个原因造成的吧?
----------------------------------------------------------------
花自飘零水自流,一种相思,两处闲愁。
此情无计可消除,才下眉头,又上心头。
----------------------------------------------------------------