---
title: "USER"
description: "USER SQL Function (*.fnc) \u306F\u30E6\u30FC\u30B6\u30FC\u306E\u30ED\u30B0\u30AA\u30F3\u30B3\u30FC\u30C9\u3092\u53D6\u5F97\u3057\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/docs/invantive-universalsql/grammar/sql-functions/user
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/user
updated: 2026-12-04T14:43:43Z
license: https://documentation.invantive.eu/ja/
---

## 構文
```mermaid
%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> USER[USER]:::quoted
    USER --> End((END))
```

## 目的
`USER` SQL Function (*.fnc) はユーザーのログオンコードを取得します。

戻り値: ユーザーのログオンコード。

## 例
次の例では、現在のユーザーのログオンコードを取得します。実際の値はログオンしたユーザーによって異なります:
```sql
select user

-------------------
john.doe@acme.eu
```

