SELECT
                    ID = newid(),
                    字段名= convert(varchar(100), a.name),
                    表名= convert(varchar(50), d.name ),
                    库名= 'WEPM_OA',
                    字段说明=convert(varchar(50), isnull(g.[value],'')),
                    字段说明=convert(varchar(50), isnull(g.[value],''))
                    FROM dbo.syscolumns a
                    left join dbo.systypes b on a.xusertype=b.xusertype
                    inner join dbo.sysobjects d on a.id=d.id and d.xtype='U' and d.name<>'dtproperties'
                    left join dbo.syscomments e on a.cdefault=e.id
                    left join sys.extended_properties g on a.id=g.major_id and a.colid=g.minor_id
                    left join sys.extended_properties f on d.id=f.major_id and f.minor_id=0
                    where d.name ='Supplier'

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2022-02-05
  • 2022-12-23
  • 2022-01-11
  • 2022-12-23
  • 2021-10-02
  • 2021-10-13
猜你喜欢
  • 2021-12-12
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案