---
title: "SQL-006: Insert menu category code"
summary: Inserts a new record into MENU_CATEGORY_CODE.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Menu
reference_type: package
---

# SQL-006: Insert menu category code

Inserts a new category code and description into the `MENU_CATEGORY_CODE` table.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | String** | 5 | Category code key bound from `Code`. |
| `:CodeDescr` | Input | String** | 100 | Description bound from `Description`. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MENU_CATEGORY_CODE](../database-tables.md#menu-category-code) | INSERT | `CODE`, `CODE_DESCR` |

## Sample SQL

```sql
Insert into MENU_CATEGORY_CODE ( CODE, CODE_DESCR  )
Values ( :Code, :CodeDescr )
```

## Operations and processes
- [Menu categorization](../operations/menu-categorization.md)


## Business rules
- [BR-MNU-02: DML row-count enforcement](../business-rules.md#br-mnu-02-dml-row-count-enforcement)


> **Note:** Statements marked with `*` were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Menu\clsMenuCategoryCode.vb`
