> For the complete documentation index, see [llms.txt](https://docs.tibero.com/tibero-manuals/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tibero.com/tibero-manuals/7.2.6.manuals/tbpsm-guide/composite-types.md). Agents can also search and read this documentation through its [MCP server](https://docs.tibero.com/tibero-manuals/~gitbook/mcp).

# 복합 타입

tbPSM에서 제공하는 구조체 형태의 컬렉션 타입과 레코드를 설명합니다.

복합 타입(composite type)이란 tbPSM이 제공하는 스칼라 타입의 집합입니다.

일반적인 프로그래밍 언어의 구조체에 해당하며, 그 종류는 다음과 같습니다.

* 컬렉션(collection) 타입 : 네스티드 테이블(nested table), 인덱스 테이블(indexed by table), 배열(varray)
* 레코드(record)

본 장은 다음과 같이 구성됩니다.

* [컬렉션 타입](https://docs.tibero.com/tibero-manuals/7.2.6.manuals/tbpsm-guide/composite-types/collections.md)\
  네스티드 테이블, 인덱스 테이블, 배열의 선언과 사용, 컬렉션의 대입과 비교, SQL 문에서의 사용
* [컬렉션 함수와 프러시저](https://docs.tibero.com/tibero-manuals/7.2.6.manuals/tbpsm-guide/composite-types/collection-methods.md)\
  EXISTS, COUNT, LIMIT, FIRST, LAST, PRIOR, NEXT, EXTEND, TRIM, DELETE
* [레코드](https://docs.tibero.com/tibero-manuals/7.2.6.manuals/tbpsm-guide/composite-types/records.md)\
  레코드의 선언과 대입, %ROWTYPE, 레코드와 컬렉션의 조합, 레코드 타입 변수의 DML
