---
title: "SQL-006: Insert a new menu category code"
summary: Insert a new menu category code
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-08-17
library: SAIF.Business.Menu
reference_type: package
---

# SQL-006: Insert a new menu category code

This statement is the `InsertSQL` implementation of `clsMenuCategoryCode.Criteria`, executed from `BeforeInsert` against `MENU_CATEGORY_CODE`. Insert a new menu category code.

## 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` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | String | 5 | Category code natural key supplied by the caller |
| `:CodeDescr` | Input | String | 100 | Category description |

## Tables

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

## Sample SQL

```sql
-- Insert a new menu category code
Insert into
  MENU_CATEGORY_CODE
  (
  CODE,
  CODE_DESCR
  )
Values
  (
  :Code,
  :CodeDescr
  )
```

## Operations and processes

- [Create a menu item](../operations/op-menu-06-create-menu-item.md)

## Business rules

- [BR-MENU-015](../business-rules.md#br-menu-015-natural-key-creation-for-codes): Natural-key creation for codes
- [BR-MENU-020](../business-rules.md#br-menu-020-single-row-write-verification): Single-row write verification

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

## Sources
- SAIF.Business.Menu/clsMenuCategoryCode.vb
