SQL中遇到多条相同内容只取一条的实现

 

例如出现BID为1673的两条重复数据,要第一条

select * from
(select no=row_number() over(partition by Bid order by getdate()),* from BidWinningNotice) t
where no=1 AND SID=238 AND BWMType=1

SQL中遇到多条相同内容只取一条的实现

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-23
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案