# Table

The Table type refers to a table by name in the SurrealDB Kotlin SDK.

`Table` refers to a table by name. Pass it to the [CRUD builders](/docs/reference/kotlin/concepts/data-manipulation.md) to target every record in the table.

**Source:** [surrealdb.kotlin](https://github.com/surrealdb/surrealdb.kotlin)

```kotlin title="Import"
import com.surrealdb.kotlin.query.Table
```

---

## Constructor

```kotlin title="Method Syntax"
Table(name)
```

<table>
    <thead>
        <tr><th>Parameter</th><th>Type</th><th>Description</th></tr>
    </thead>
    <tbody>
        <tr><td><code>name</code> _(required)_</td><td><code>String</code></td><td>The table name.</td></tr>
    </tbody>
</table>

```kotlin title="Example"
val person = Table("person")

client.select(person).awaitAs<List<Person>>()
```

When bound into a query, a `Table` is rendered with `type::table(name)` so the value is always passed safely.

## Learn more

- [Value types](/docs/reference/kotlin/concepts/value-types.md)
- [`RecordId`](/docs/reference/kotlin/api/values/record-id.md) and [`RecordIdRange`](/docs/reference/kotlin/api/values/record-id-range.md)
