MS SQL server对象类型type
程序员文章站
2022-03-28 16:29:07
执行下面代码,将获取ms sql server对象类型以及其说明 IF OBJECT_ID('tempdb.dbo.#type') IS NOT NULL DROP TABLE #type CREATE TABLE #type ( [type] NVARCHAR(2), [desc] NVARCHA ......
执行下面代码,将获取ms sql server对象类型以及其说明
if object_id('tempdb.dbo.#type') is not null drop table #type create table #type ( [type] nvarchar(2), [desc] nvarchar(30) ) insert into #type ([type],[desc]) values (n'af',n'聚合函数(clr)'), (n'c',n'check 约束'), (n'd',n'default(约束或独立)'), (n'f',n'foreign key 约束'), (n'pk',n'primary key 约束'), (n'p',n'sql 存储过程'), (n'pc',n'程序集(clr)存储过程'), (n'fn',n'sql 标量函数'), (n'fs',n'程序集(clr)标量函数'), (n'ft',n'程序集(clr)表值函数'), (n'r',n'规则(旧式,独立)'), (n'rf',n'复制筛选过程'), (n'sn',n'同义词'), (n'sq',n'服务队列'), (n'ta',n'程序集(clr)dml 触发器'), (n'tr',n'sql dml 触发器'), (n'if',n'sql 内联表值函数'), (n'tf',n'sql 表值函数'), (n'u',n'表(用户定义类型)'), (n'uq',n'unique 约束'), (n'v',n'视图'), (n'x',n'扩展存储过程'), (n'it',n'内部表') select [type],[desc] from #type