# select

The select() method for the SurrealDB Mojo SDK selects all records in a table, or a specific record.

Selects all records in a table, or a specific record. This is a convenience wrapper that runs `SELECT * FROM <thing>;`.

```python title="Method Syntax"
client.select(thing, session, txn)
```

## Arguments

<table>
    <thead>
        <tr>
            <th colspan="2" scope="col">Argument</th>
            <th colspan="2" scope="col">Description</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td colspan="2" scope="row" data-label="Argument"><code>thing</code></td>
            <td colspan="2" scope="row" data-label="Description">The table or specific record to select.</td>
        </tr>
        <tr>
            <td colspan="2" scope="row" data-label="Argument"><code>session</code></td>
            <td colspan="2" scope="row" data-label="Description">An optional session id.</td>
        </tr>
        <tr>
            <td colspan="2" scope="row" data-label="Argument"><code>txn</code></td>
            <td colspan="2" scope="row" data-label="Description">An optional transaction id.</td>
        </tr>
    </tbody>
</table>

## Example usage

```python
# Select every record in a table
var people = client.select("person")

# Select a specific record
var chiru = client.select("person:chiru")
```

## Translated query

```surql
SELECT * FROM $thing;
```
