SQL
Enum Functions
<div class="nostroke_table"></div>  
|   |   |
|:--|:--------|
| **Description** |Returns the numeric value backing the given enum value. |
| **Example** | `enum_code('happy'::mood)` |
| **Result** | `2` |