# `iid` statement

The constraint `$c iid <IID>` matches the stored concept with the provided internal ID (IID).

Schema for the following examples

```typeql
#!test[schema]
define
attribute name, value string;
entity person, owns name;
```

## [](#_inserting_iids)Inserting IIDs

When a concept is inserted, it is assigned an IID automatically.

```typeql
#!test[write]
insert $user isa person;
```

Example TypeDB Console output

   --------
    $x | iid 0x1f0005000000000000012f isa user
   --------

## [](#_matching_iids)Matching IIDs

```typeql
#!test[read]
match $x iid 0x1f0005000000000000012f;
```

[label](../label/index.md) [Comparisons](../comparisons/index.md)

[Edit on GitHub](https://github.com/typedb/typedb-docs/edit/3.x-development/typeql-reference/modules/ROOT/pages/statements/iid.adoc) Edit this page on GitHub.