CREATE TABLE
で列を定義できます として:
AgeInMinutes as (DATEDIFF(minute, PublishDate, GETDATE())
または、そのまま
ALTER TABLE Book ADD AgeInMinutes as (DATEDIFF(minute, PublishDate, GETDATE())
プレ>
CREATE TABLE
で列を定義できます として:
AgeInMinutes as (DATEDIFF(minute, PublishDate, GETDATE())
または、そのまま
ALTER TABLE Book ADD AgeInMinutes as (DATEDIFF(minute, PublishDate, GETDATE())
プレ>