所以我改变查询的方式是返回int,但我想要一些可以返回星期几的东西,所以我将datename(dw,tblSomeTable.deventdate)替换为:
case cast (strftime('%w', tblSomeTable.EventDate) as integer) when 0 then 'Sunday' when 1 then 'Monday' when 2 then 'Tuesday' when 3 then 'Wednesday' when 4 then 'Thursday' when 5 then 'Friday' else 'Saturday' end as servdayofweek
它让我得到了我所需要的。