You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/word/新协航_设计文档/数据库建表文档/20140215/修改user列表视图增加GID.sql

21 lines
346 B
MySQL

3 years ago
IF EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'[dbo].[vMsTruckUser]'))
DROP VIEW [dbo].[vMsTruckUser]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE VIEW [dbo].[vMsTruckUser]
AS
SELECT GID GID,CodeName as UserCode, ShowName as UserName, CodeName+'-' + ShowName as CodeAndName
FROM dbo.[user]
GO