select * from ai_at where code= ‘111’ and sys_in_time= (select max(sys_in_time) from ai_at)
select top 1 * from ai_at where code= ‘111’ order by sys_in_time desc
select * from ai_at where code= ‘111’ and sys_in_time= (select max(sys_in_time) from ai_at)
select top 1 * from ai_at where code= ‘111’ order by sys_in_time desc