> For the complete documentation index, see [llms.txt](https://docs.tibero.com/tmaxopensql/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/tmaxopensql/tmax-o2-extensions/reference-guides/sql-function.md). Agents can also search and read this documentation through its [MCP server](https://docs.tibero.com/tmaxopensql/~gitbook/mcp).

# SQL 함수(SQL function) 참조 안내서

o2functions extension 설치 후 신규 함수들이 추가되며, 아래의 2가지 형식으로 사용하여야 합니다.

#### search\_path를 설정하지 않은 경우

스키마(기본 `oracle`)의 이름을 function 앞에 추가하여 사용합니다.

```sql
{schema_name}.{function_name}

-- 예시) o2views extension 설치 후, 새로 추가된 sysdate라는 함수 사용
-- select oracle.sysdate();

```

#### search\_path를 설정한 경우

스키마(기본 `oracle`)를 가장 높은 우선순위 search\_path로 설정한 경우, 스키마를 생략하고 사용할 수 있습니다.

```sql
-- 현재 접속 세션에서 스키마 'oracle'를 가장 우선순위 높은 search_path로 설정
set search_path to oracle, public;

{function_name}

-- 예시) o2views extension 설치 후, 새로 추가된 sysdate라는 함수 사용
-- select sysdate();
```

각 함수들 사양은 스키마를 생략한 형태로 기술합니다.

###
