Overview
Deletes a position record fromtab_cargos by ID.
Signature
Parameters
Position ID to delete
Returns
TRUE- Position deleted successfullyFALSE- Delete failed
Example Usage
Validation Rules
- Position ID must exist
- ID must not exceed 2 digits
- Cannot delete positions referenced by employees
Error Handling
| SQL State | Description |
|---|---|
| 02000 | Position ID does not exist |
| 23502 | Attempted to use NULL value |
| 22003 | Number is too large |
| 22P02 | Invalid data format |
| others | Unknown error |
Source
source/func/cargos/fun_delete_cargos.sql