select (case a.handleUser when 'admin' then '1' else '0' end) AS idHandUser,
(case a.appayUser when 'admin' then '1' else '0' end) AS idapplyUser,
a.*,CONVERT(varchar(100), applyTime, 102) as ATime
(case a.appayUser when 'admin' then '1' else '0' end) AS idapplyUser,
a.*,CONVERT(varchar(100), applyTime, 102) as ATime
from cutchargeflow a where a.status =1 and a.handleUser ='admin' or a.appayUser = 'admin'
日期的比较
select * from T_cutchargeflow where cast(CONVERT(varchar, applyTime)as datetime)
between cast(CONVERT(varchar, '2011-7-1')as datetime) and cast(CONVERT(varchar, '2013-08-19')as datetime)
本文展示了如何使用SQL查询筛选出管理员在特定日期范围内的操作记录,包括处理用户标识和应用支付标识的逻辑,并对应用时间进行了格式转换。
1235

被折叠的 条评论
为什么被折叠?



