如何在SQL Server中创建带有18位时间戳的列?
我当前的代码是
CREATE TABLE TestID
(
PnpGuid UNIQUEIDENTIFIER DEFAULT NEWSEQUENTIALID(),
PnPTimestamp BIGINT NOT NULL
)
INSERT INTO TestID
(PnpGuid,
PnPTimestamp)
VALUES (NEWID(),
( CONVERT (INT, CURRENT_TIMESTAMP) ))