SQL
Bitstring Functions
<div class="nostroke_table"></div>  
|   |   |
|:--|:--------|
| **Description** |Sets the nth bit in bitstring to newvalue; the first (leftmost) bit is indexed 0. Returns a new bitstring. |
| **Example** | `set_bit('0110010'::BITSTRING, 2, 0)` |
| **Result** | `0100010` |