Skip to content

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 INSERT CODE, CODE_DESCR

Sample SQL

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

Operations and processes

Business rules

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

Sources

  • SAIF.Business.Menu/clsMenuCategoryCode.vb