---
title: "SQL-011: Update US Bank user"
summary: Update an existing SAIF-side user row.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.EPay.USBank
reference_type: package
---

# SQL-011: Update US Bank user

Update an existing row in `US_BANK_USER`.

## Classification

| Field | Value |
| --- | --- |
| SQL ID | SQL-011 |
| Operation type | Update |
| Execution method | Inline SQL |
| Database | Oracle |
| Schema | Unqualified in library SQL |
| Command type | Text |
| Business object | `clsUSBankUser` |
| Criteria property | `UpdateSQL` |
| Lifecycle method | `BeforeUpdate` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:FirstName` | Input | `clsSmartString` / `String` | 30 | Updated first name. |
| `:LastName` | Input | `clsSmartString` / `String` | 30 | Updated last name. |
| `:TransferBankAccountsFlag` | Input | String | 1 | Updated Y/N transfer flag. |
| `:USBankUserSeqNum` | Input | Decimal | N/A | Primary key used in the `WHERE` clause. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [US_BANK_USER](../database-tables.md#us_bank_user) | UPDATE | `FIRST_NAME`, `LAST_NAME`, `TRANSFER_BANK_ACCOUNTS_FLAG`, `US_BANK_USER_SEQ_NUM` |

## Sample SQL

```sql
UPDATE US_BANK_USER
SET
    FIRST_NAME = :FirstName,
    LAST_NAME = :LastName,
    TRANSFER_BANK_ACCOUNTS_FLAG = :TransferBankAccountsFlag
WHERE US_BANK_USER.US_BANK_USER_SEQ_NUM = :USBankUserSeqNum
```

## Operations and processes
- [Register or update a US Bank user](../operations/register-or-update-us-bank-user.md)
- [Persist and retrieve SAIF-side integration records](../operations/saif-side-user-and-notice-persistence.md)

## Business rules
- [BR-004: User updates must affect exactly one row](../business-rules.md#br-004-user-updates-must-affect-exactly-one-row)

## Sources
- `Business\SAIF.Business.EPay.USBank\clsUSBankUser.vb`

