看看这句,有什么错误? select case when datepart(month,outdate) = 1 then 12 else mon-1 end from ctilog 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select case datepart(month,outdate) when 1 then 12 else mon-1 end from ctilog或:select dateadd(month,-1,outdate) from ctilog select case datepart(month,outdate) when 1 then 12 else mon-1 end from ctilog或:select month(dateadd(month,-1,outdate)) from ctilog select month(dateadd(month,-1,getdate())) select case datepart(month,outdate) when 1 then 12 else datepart(month,outdate) - 1 end from ctilog select month(dateadd(month,-1,outdate)) from ctilog 小弟又来送分了。快来抢 怎么限制字数为2万 如何使用Go? 急求解,谢谢 兄弟高分相送,access到如mssql后,原来的布尔类型,变成了1/0类型 字段转换过程中的问题! 求多项占总和百分比的SQL语句 有关创建数据库的用户问题,请帮忙解答高分相送!!!!!!!!!!!! 这样的一个查询的sql语句怎么写? ADO访问远端数据库 我糊涂了,请教:视图到底有何用? 可以在动态域名上使用sqlserver吗?
或:
select dateadd(month,-1,outdate) from ctilog
或:
select month(dateadd(month,-1,outdate)) from ctilog