---
title: "SQL-064: clsAddressInfo"
summary: Update statement for clsAddressInfo.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.CustomerContact
reference_type: package
---

# SQL-064: clsAddressInfo

This statement supports `clsAddressInfo` by executing a update operation against ADDRESS.

## Classification

| Field | Value |
| --- | --- |
| SQL ID | SQL-064 |
| Operation type | Update |
| Execution method | Inline |
| Database | Oracle |
| Schema | `[unqualified]**` |
| Command type | Text |
| Business object | `clsAddressInfo` |
| Criteria property | UpdateSQL |
| Lifecycle method | BeforeUpdate |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:AddressCode` | Input | String | 5 | Address type code |
| `:ForeignAddressFlag` | Input | String (Y/N) | 1 | Foreign-address flag |
| `:AddressLine1` | Input | String | 40 | Address line 1 |
| `:AddressLine2` | Input | String | 40 | Address line 2 |
| `:AddressLine3` | Input | String | 40 | Address line 3 |
| `:AddressLine4` | Input | String | 40 | Address line 4 |
| `:CityName` | Input | String | 30 | City name |
| `:StateCode` | Input | String | 2 | State code |
| `:ZipCode` | Input | String | 5 | Postal code |
| `:ZipCodeExtension` | Input | String | 4 | Postal code extension |
| `:CountryCode` | Input | Integer | 5 | Country code |
| `:ForeignPostalCode` | Input | String | 15 | Foreign postal code |
| `:UpdateUser` | Input | Date | 30 | Audit update user |
| `:UpdateDate` | Input | Date | N/A | Audit update timestamp |
| `:EffectiveDate` | Input | Date | N/A | Effective date |
| `:ExpirationDate` | Input | Date | N/A | Expiration date |
| `:ActiveFlag` | Input | String (Y/N) | 1 | Active flag |
| `:PrimaryFlag` | Input | String (Y/N) | 1 | Primary flag |
| `:NoteText` | Input | String | 100 | Free-form note text |
| `:CountyCode` | Input | Integer | 5 | County code |
| `:LocationName` | Input | String | 100 | Location name |
| `:AddressID` | Input | Decimal | N/A | Address primary key |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [ADDRESS](../database-tables.md#address) | UPDATE | ACTIVE_FLAG, ADDRESS_CODE, ADDRESS_LINE1, ADDRESS_LINE2, ADDRESS_LINE3, ADDRESS_LINE4, ADDRESS_SEQ_NUM, CITY_NAME, COUNTRY_CODE, COUNTY_CODE, EFF_DT, EXP_DT, FOREIGN_ADDRESS_FLAG, FOREIGN_POSTAL_CODE, LOCATION_NAME, NOTE_TEXT, PRIMARY_FLAG, STATE, UPDATE_DATE, UPDATE_USER, ZIP_CODE, ZIP_CODE_EXT |

## Sample SQL

```sql
Update ADDRESS Set ADDRESS_CODE = :AddressCode, ADDRESS_LINE1 = :AddressLine1, ADDRESS_LINE2 = :AddressLine2, ADDRESS_LINE3 = :AddressLine3, ADDRESS_LINE4 = :AddressLine4, CITY_NAME = :CityName, STATE = :StateCode, ZIP_CODE = :ZipCode, ZIP_CODE_EXT = :ZipCodeExtension, COUNTRY_CODE = :CountryCode, FOREIGN_ADDRESS_FLAG = :ForeignAddressFlag, FOREIGN_POSTAL_CODE = :ForeignPostalCode, UPDATE_USER = :UpdateUser, UPDATE_DATE = :UpdateDate, EFF_DT = :EffectiveDate, EXP_DT = :ExpirationDate, ACTIVE_FLAG = :ActiveFlag, PRIMARY_FLAG = :PrimaryFlag, NOTE_TEXT = :NoteText, COUNTY_CODE = :CountyCode, LOCATION_NAME = :LocationName Where ADDRESS.ADDRESS_SEQ_NUM = :AddressID
```

## Operations and processes
- [Address info CRUD and linking](../operations/address-info-crud-and-linking.md)

## Business rules
- [BR-005: Address records require an ID and address type](../business-rules.md#br-005-address-records-require-an-id-and-address-type)

> **Note:** Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.CustomerContact\clsAddressInfo.vb`
