Selecting GETDATE() function twice in a select list— same value for both?

前端 未结 4 781
梦谈多话
梦谈多话 2020-12-07 01:04

I have a SELECT statement that uses GETDATE() for two different column values. I\'m wondering if by the nature of things those two separate functi

4条回答
  •  自闭症患者
    2020-12-07 01:17

    Yes, they will return the same date and time, to the millisecond.

    SELECT GETDATE(), GETDATE()
    

    Returns

    2010-10-29 15:34:06.353 2010-10-29 15:34:06.353
    

    I have tested this with 4000, GETDATE() and they all return the same.

提交回复
热议问题