是不是漏掉了什么?!update tbclinfo
set fddtime = getdate()
from tbclinfo,--这种格式应该加上要更新的表
(select top 3 * from tbclinfo where fdcneirong like '%'+ @messagetemp+'%' order by fddtime ) AS t1
WHERE tbclinfo.fdiid = t1.fdiid
--其实就是更新符合fdcneirong like '%'+ @messagetemp+'%' 条件的纪录,按照fddtime降序排列的前三条的fddtime为GETDATE(),即当前时间
set fddtime = getdate()
from tbclinfo,--这种格式应该加上要更新的表
(select top 3 * from tbclinfo where fdcneirong like '%'+ @messagetemp+'%' order by fddtime ) AS t1
WHERE tbclinfo.fdiid = t1.fdiid
--其实就是更新符合fdcneirong like '%'+ @messagetemp+'%' 条件的纪录,按照fddtime降序排列的前三条的fddtime为GETDATE(),即当前时间
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货