SQL Server OBJECT_ID的用法

OBJECT_ID('name','type') 方法

OBJECT_ID(名称,表、索引、触发器等都可以);

type如下列表:

AF = Aggregate function (CLR)
C = CHECK constraint
D = DEFAULT (constraint or stand-alone)
F = FOREIGN KEY constraint
FN = SQL scalar function
FS = Assembly (CLR) scalar-function
FT = Assembly (CLR) table-valued function
IF = SQL inline table-valued function
IT = Internal table
P = SQL Stored Procedure
PC = Assembly (CLR) stored-procedure
PG = Plan guide
PK = PRIMARY KEY constraint
R = Rule (old-style, stand-alone)
RF = Replication-filter-procedure
S = System base table
SN = Synonym
SQ = Service queue
TA = Assembly (CLR) DML trigger
TF = SQL table-valued-function
TR = SQL DML trigger
U = Table (user-defined)
UQ = UNIQUE constraint
V = View
X = Extended stored procedure
---------------------
作者:紫松哥哥
来源:CSDN
原文:https://blog.csdn.net/zisongjia/article/details/60956257
版权声明:本文为博主原创文章,转载请附上博文链接!

原文地址:https://www.cnblogs.com/XiangZiPeng/p/11133300.html