본문 바로가기
백엔드/SQL

[SQL] User-defined Function (4)

by leejiwoo21 2021. 12. 4.

User-defined Function (4)

 

Sys.Objects : 데이터베이스 안에서 user-defined, schema-scoped 객체를 포함하고 있습니다.

 

Object Types

 

AF = Aggreage function

C = CHECK constraint

D = DEFAULT

F = FOREIGN KEY constraint

FN = SQL scalar function

FS = Assembly scalar-function

IF = SQL inline table-valued function

IT = Internal table

P = SQL Stored Procedure

PC = Assembly stored-procedure

PG = Plan guide

PK = PRIMARY KEY constraint

S = System base table

SN = Synonym

SO = Sequence object

U = Table(user-defined)

V = View

EC = Edge constraint

SQ = Service queue

TA = Assembly DML trigger

TF = SQL table-valued-function

TR = SQL DML trigger

TT = Table type

UQ = UNIQUE constraint

X = Extended stored procedure

 

사용 예시

select * from sys.objects
where type = 'IF'

출력

>> 현재 데이터베이스에서 전에 만들었던 IF(inline table valued function)타입의 오브젝트가 나왔습니다.

 

 

'백엔드 > SQL' 카테고리의 다른 글

[SQL] Stored procedure (2)  (0) 2021.12.04
[SQL] Stored procedure (1)  (0) 2021.12.04
[SQL] User-defined Function (3)  (0) 2021.12.04
[SQL] User-defined Function(2)  (0) 2021.12.03
[SQL] User-Defined Functions (1)  (0) 2021.12.03

댓글