---
title: SQL-031: Insert Provider Relationship Code
summary: Inserts a new provider relationship code record into Oracle.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Provider
reference_type: package
---

# SQL-031: Insert Provider Relationship Code

Inserts a new provider relationship code record into Oracle.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-031 |
| **Operation type** | Create |
| **Execution method** | Inline |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | Text |
| **Business object** | `clsProviderRelationshipCode` |
| **Criteria property** | `InsertSQL` |
| **Lifecycle method** | `BeforeInsert` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| :CodeDescr | Input | String | 65 | Value from `CodeDescr` |
| :ReverseRelationshipTypDescr | Input | String | 20 | Value from `ReverseRelationshipTypDescr` |
| :Code | Input | String | 5 | Value from `Code` |
| :UpdateUser | Input | String | 30 | Value from `UpdateUser` |
| :UpdateNum | Input | Decimal | N/A | Value from `UpdateNum` |
| :UpdateDate | Input | Date | N/A | Value from `UpdateDate` |
| :Code | Input | String | 5 | Value from `MyCriteria.Code` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [PROVIDER_RELATIONSHIP_CODE](../database-tables.md#provider_relationship_code) | INSERT | See business-object criteria for key columns. |

## Sample SQL

```sql
Insert into PROVIDER_RELATIONSHIP_CODE ( CODE, CODE_DESCR, REVERSE_RELATIONSHIP_TYP_DESCR, UPDATE_USER, UPDATE_NUM, UPDATE_DATE ) Values ( :Code, :CodeDescr, :ReverseRelationshipTypDescr, :UpdateUser, :UpdateNum, :UpdateDate)
```

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

## Sources
- `Business\SAIF.Business.Provider\clsProviderRelationshipCode.vb`
