I have a table dbo.X
with DateTime
column Y
which may have hundreds of records.
My Stored Procedure has parameter @CurrentDate
, I want to find out the date in the column Y
in above table dbo.X
which is less than and closest to @CurrentDate.
How to find it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…