<div class="meta" robots="noindex">

</div>

Method

# MySQLCommunityServer.GetInsertID

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `MySQLCommunityServer.AddRow<mysqlcommunityserver.addrow>` as a replacement.

</div>

## Description

Returns as an `UInt64</api/data_types/additional_types/uint64>` the value of the AUTOINCREMENT field for the last row that was inserted.

## Compatibility

All project types on all supported operating systems.
