---
title: getTablePrimaryKey
---

# getTablePrimaryKey

<a href="https://github.com/remix-run/remix/blob/remix@3.0.0-alpha.6/packages/data-table/src/lib/table.ts#L477" target="_blank">View Source</a>

## Summary

Returns a table's primary key columns.

## Signature

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

```

## Params

### table

## Returns

Primary key columns.