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

# SQL-032: Update a menu category code

This statement is the `UpdateSQL` implementation of `clsMenuCategoryCode.Criteria`, executed from `BeforeUpdate` against `MENU_CATEGORY_CODE`. Update a menu category code.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:CodeDescr` | Input | String | 100 | Updated category description |
| `:Code` | Input | String | 5 | Category code key |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MENU_CATEGORY_CODE](../database-tables.md#menu_category_code) | UPDATE | CODE_DESCR (SET); CODE (WHERE) |

## Sample SQL

```sql
-- Update a menu category code
Update
  MENU_CATEGORY_CODE
Set
  CODE_DESCR = :CodeDescr
Where
  MENU_CATEGORY_CODE.CODE = :Code
```

## Operations and processes

- [Update or delete a maintained object](../operations/op-menu-07-update-delete-maintained-object.md)

## Business rules

- [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
