|
发表于 2013-1-30 17:03:55
|
显示全部楼层
然后增加视图:
USE [UFSystem]
GO
/****** Object: View [dbo].[ua_Task] Script Date: 01/30/2013 17:03:27 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
---------------zhengyun增加字段,修改索引--------------------------------
CREATE VIEW [dbo].[ua_Task]
AS
SELECT [cAcc_Id], [iYear], [cUser_Id], [cAuth_Id], [cStation], [cTaskId], [iLogId], [cSub_id], [cAppServer], [cAuthClassCode],[iBeginYear]
FROM [UFSystem].[dbo].[ua_Task_Common]
union
SELECT [cAcc_Id], [iYear], [cUser_Id], [cAuth_Id], [cStation], [cTaskId], [iLogId], [cSub_id], [cAppServer], [cAuthClassCode] ,[iBeginYear]
FROM [UFSystem].[dbo].[UA_Task_Special]
---------------zhengyun增加字段,修改索引--------------------------------
GO
|
|