How can I generate a random timestamp appended to getdate() in SQL Server?

前端 未结 0 425
北恋
北恋 2021-02-04 00:00

The following sql select generates the current date and time:

select
( Dateadd(day, -tn.daysago, Getdate()) )
                AS DueDate

from table_name as tn


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题