declare @objid int,@objname char(40) set @objname = 'dbo.MyTestView' select @objid = id from sysobjects where id = object_id(@objname) select FID,FName ,'Column_name' = name ,'' AS 查看 ,'' AS 更新 ,'' AS 删除 ,'' AS 新增 into MyWeight from syscolumns,MyWorker where id = @objid order by FID,FName