我拥有2005年服务器标准服务包2 9.00.4053.00(电话:X86)
表有近3 000万行。
如果是,
SELECT GETDATE(), * FROM
<table>
www.un.org/Depts/DGACM/index_spanish.htm 相同日期和时间价值包括。 提问时间超过3分钟......
我已经读过。
http://sqlblog.com/blogs/andrew_kelly/archive/2008/02/27/ when-getdate-is-not-a-constant.aspx
http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/66507b8b-4a74-44c1-9637-3ab5f75db6a0”rel=“诺referer”http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/66507b8b-4a74-44c1-9637-3ab5fd6ba 0
One of the link I posted (marked answer) suggest that prior to SQL 2005 GETDATE was deterministic although SQL 2000 BOL states GETDATE is nondeterministic
如果是,an update with millions of rows
UPDATE tableName
SET dateColumn = GETDATE()
我知道你真的希望这样做。
DECLARE @DT datetime
SET @DT = GETDATE()
UPDATE table
SET datecol =@DT
我确实感到困惑。
预计会采取什么行动?
- In case of select statement I posted earlier
- Behavior of update statement
Considering you are updateing a datecolun on a table with 100 million rows Would datecolumn will have identical date and time in milliseconds....?