update ST_PPTN_D set
tm=(select top 1 a2.时间 from 实测雨情表 a2 where a2.stcd=ST_PPTN_D.stcd order by 时间 desc),
DRP=(select top 1 a2.雨量 from 实测雨情表 a2 where a2.stcd=ST_PPTN_D.stcd order by 时间 desc)
update ST_PPTN_D set
tm=(select top 1 a2.时间 from 实测雨情表 a2 where a2.stcd=ST_PPTN_D.stcd order by 时间 desc),
DRP=(select top 1 a2.雨量 from 实测雨情表 a2 where a2.stcd=ST_PPTN_D.stcd order by 时间 desc)