如何实现视图中添加标识列? SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
ALTER VIEW dbo.PS_TaskOldView
AS
SELECT TOP 100 PERCENT c.PS_TaskOID AS PS_TaskOldViewOID, c.ProjectName,
c.ProjectType, c.ProjectKind, c.BeginMoney, c.SignForDate, c.AssessKind,
c.FlowChineseName, b.resolutionCode, b.USR_LOGIN, b.PersonName,
b.UCML_UserOID, c.PSAGZOID, c.ProjectID, c.RepID, c.InstanceID,
a.ActivityChineseName, d.Memo AS Memo, d.WhyReturn AS WhyReturn,
d.BeConsUnit AS BeConsUnit, d.AssessStatu AS AssessStatu
FROM dbo.TaskTicket a INNER JOIN
dbo.AssignTask b ON a.TaskTicketOID = b.TaskTicketOID INNER JOIN
dbo.PS_Task c ON a.InstanceID = c.InstanceID INNER JOIN
dbo.PS_AssessTask d ON c.PSAGZOID = d.PS_AssessTaskOID
ORDER BY c.SignForDate DESC
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO