我有一张桌子
Id Number 1 9 2 10 3 12 4 19 5 20
选择Id,其中Number最接近18,它应返回第4行,即19
我如何在linq和tsql中写这个?谢谢
c# t-sql linq
c# ×1
linq ×1
t-sql ×1