# RENAME TABLE keyword

> **For AI agents:** the complete documentation index is at [llms.txt](https://questdb.com/docs/llms.txt). Every page is available as markdown by appending `.md` to its URL, or by sending an `Accept: text/markdown` request header.

RENAME TABLE SQL keyword reference documentation.

`RENAME TABLE` is used to change the name of a table.

## Syntax

```questdb-sql
RENAME TABLE oldName TO newName;
```

## Example

```questdb-sql
RENAME TABLE 'test.csv' TO 'myTable';
```
