# WSREP\_LAST\_WRITTEN\_GTID

## Syntax

```sql
WSREP_LAST_WRITTEN_GTID()
```

## Description

Returns the [Global Transaction ID](https://mariadb.com/docs/server/ha-and-performance/standard-replication/gtid) of the most recent write transaction performed by the client.

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
