我有這種說法,想知道如何使「唯一索引視圖」聚集索引視圖
ALTER VIEW vwCF
as
SELECT
cf.CashFlowID
,ftt.FTSName
,cf.FTSTypeID
,ftt.SortOrder AS ftsSortOrder
,cf.SecurityTypeID
,st.SecurityTypeName
,st.SortOrder AS stSortOrder
,cf.IssuanceDate
,cf.Issuance
,cf.Principal
,cf.Interest
,cf.FlowAmounts
,cf.Net
FROM dbo.CashFlow AS cf
INNER JOIN dbo.FinancialTimesType AS ftt ON cf.FTSTypeID = ftt.FTSTypeID
INNER JOIN dbo.SecurityType AS st ON cf.SecurityTypeID = st.SecurityTypeID
Go
如何做好創建唯一索引視圖,何去何從?謝謝
如果DB是SQL SERVER檢查[這](http://stackoverflow.com/questions/8506487/cannot-create-index-on-view -view-table-name-because-the-view-is-not-schema-bou)和[this](http://stackoverflow.com/questions/9199418/sql-server-indexed-views)。 – user2989408