---
title: "getTablePrimaryKey"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/data-table/src/lib/table.ts#L477"
---

# getTablePrimaryKey

## Summary

Returns a table's primary key columns.

## Signature

```ts
function getTablePrimaryKey<table extends AnyTable>(table: table): TablePrimaryKey<table>

```

## Returns

Primary key columns.