首页 新闻 赞助 找找看

这sql语句最后加上后查不出来数据,求大神解答!

0
[待解决问题]
 select
a.memCardGUID   as    memCardGUID,
a.memGUID       as    memGUID,
a.memCardType   as    cardType,
a.memCardCode   as    cardCode,
a.memCardStatus as   cardStatus,
a.isMainCard     as    isMainCard,
convert(a.effectiveDate,char)    as      cardCreateDate,
convert(a.expiryDate,char)    as     expireDate,
a.companyGUID                     as     orgGUID,
a.companyName,
a.storeGUID,
a.storeName,
a.curScore              as      ljPoint,
convert(a.issueDate,char)  as      handoverDate,
a.addedBy                  as      handoverHr,
convert(a.createTime,char),
convert(a.modifyTime,char),
case when memCardType=1 then 2 when memCardType=2 then 2 when memCardType=3 then 2 when memCardType=4 then 1 when memCardType=5 then 1 else 2 end as   cardType,
convert(a.modifyTime,char) as     statusDate,
'未知' as     statusReason,
convert(a.modifyTime,char)  as   timeStamp

from 402_00020002 a
where 
a.modifyTime > (select timestamp from sync_402_00020002 order by timestamp desc limit 1) 
 order by modifyTime
这sql语句最后where加上后查不出来数据
我就叫你女王八的主页 我就叫你女王八 | 初学一级 | 园豆:10
提问于:2016-06-15 10:34
< >
分享
所有回答(1)
0

where 
a.modifyTime > (select TOP 1 timestamp from sync_402_00020002 order by timestamp desc ) 
order by modifyTime

如此低调的男人 | 园豆:842 (小虾三级) | 2016-06-15 16:37
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册