> For the complete documentation index, see [llms.txt](https://docs.daita.ch/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.daita.ch/usage/relational/update.md).

# UPDATE

```typescript
const result = await client.update({
   update: table(Mountain),
   set: {
       height: 100,
   },
   where: equal(field(Mountain, 'country'), 'CH'),
});
// sql: UPDATE "Mountain" SET "height" = 100 WHERE "Mountain"."country" = 'CH'
//
// const result: { updatedRows: number }
```
