> For the complete documentation index, see [llms.txt](https://docs.kognitos.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kognitos.com/legacy/legacy-experience/automation-areas/tables-v2/get-a-column/rename-columns.md).

# Rename Columns

Renames columns in a table to new names specified by the user.

### Overview

This procedure renames the columns in a table to new names specified by the user.

### Input Concepts

| Concept             | Type    | Description                                    | Default    | Required |
| ------------------- | ------- | ---------------------------------------------- | ---------- | -------- |
| `table`             | table   | The table containing the column to be renamed. | No default | Yes      |
| `old columns names` | strings | The current name of the columns to be renamed. | No default | Yes      |
| `new column names`  | strings | The new names for the columns.                 | No default | Yes      |

### Examples

#### 1. Rename the Columns

```
rename the table's columns where
    the old column names are "foo", "bar"
    the new column names are "baz", "qux"
```
