Overview
Inserts a new position record intotab_cargos with an auto-incremented ID.
Signature
Parameters
Position name (3-40 characters)
Returns
TRUE- Position inserted successfullyFALSE- Insert failed
Example Usage
Validation Rules
- Position name must be between 3 and 40 characters
- Position name cannot be NULL
- Duplicate position names are not allowed
Error Handling
| SQL State | Description |
|---|---|
| 23505 | NULL value in ID field |
| 23514 | Value violates check constraint |
| others | Unknown error during insert |
Source
source/func/cargos/fun_insert_cargos.sql