select * from SM_Sent_SM_List 
where sysaccountid is null or sysaccountid not in 
(select serialno from Mdao_Sys_Account) and sendtime >= CONVERT(DATETIME,'2011-12-9 00:00:00', 121)
在SM_Sent_SM_List 表中有一条数据其中:sendtime 是12月8号的一个时间,sysaccountid 是null
执行这个查询,这条数据就出来,但是我查询的是12月9号以后的数据啊,这是怎么回事,该怎么改呢?
请大家帮帮忙。