我發現了一個查詢的一些代碼,看起來像這樣:在我的SQL Server select查詢中,這個「for system_time between」是什麼?
select *
from myview
for system_time between @fromDt and @toDt --what is this?
where countryId = @Id
我從來沒有見過的查詢for system_time between X and Y
。這是什麼意思?我在哪裏可以找到關於這個或使用它的例子的文檔?
Here is the syntax的select
,它提到了for
條款,但只提到XML,JSON和瀏覽選項(link)。
查詢是否有效?您的視圖中是否有名爲system_time的列? –
這是2016年新增功能:[時間表](https://msdn.microsoft.com/zh-cn/library/dn935015.aspx) – jpw