Retrieving date in sql server, CURRENT_TIMESTAMP vs GetDate()

前端 未结 4 1880
孤街浪徒
孤街浪徒 2020-11-30 05:33

Using SQL Server - which is the fastest or best practice method to use for date retrieval? Is there a difference?

4条回答
  •  Happy的楠姐
    2020-11-30 05:59

    CURRENT_TIMESTAMP is part of the ANSI SQL spec. GETDATE() is a SQL Server-specific function inherited from the original Sybase code on which SQL Server is based.

    They do exactly the same thing, though.

提交回复
热议问题