---
description: "Learn more about: Type.AddTableKey"
title: "Type.AddTableKey"
---
# Type.AddTableKey

## Syntax

<pre>
Type.AddTableKey(<b>table</b> as type, <b>columns</b> as list, <b>isPrimary</b> as logical) as type
</pre>

## About

Adds a key to the given table type.
