# Generate a Unique ID/GUID for All Records During Excel to SQL Table Insertion in KNIME

**URL:** <https://forum.knime.com/t/generate-a-unique-id-guid-for-all-records-during-excel-to-sql-table-insertion-in-knime/84056>\
**Category:** KNIME Analytics Platform\
**Created:** [October 24, 2024, 5:45am UTC](https://forum.knime.com/t/generate-a-unique-id-guid-for-all-records-during-excel-to-sql-table-insertion-in-knime/84056 "2024-10-24T05:45:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [October 24, 2024, 5:58am UTC](https://forum.knime.com/t/generate-a-unique-id-guid-for-all-records-during-excel-to-sql-table-insertion-in-knime/84056/2 "2024-10-24T05:58:02Z")

</div>

@San_07 depending on your database you can create such an id within

> [@Errors writing KNIME string to PostgreSQL uuid field](https://forum.knime.com/t/errors-writing-knime-string-to-postgresql-uuid-field/36064/3):
>
> A solution could be something like this. You upload the file with the UUID into a emporary table and then insert it into the target table The CAST() command would convert it into a uuid

Or you can use this component

> **[GUID Generator – sjporter](https://hub.knime.com/sjporter/spaces/Public/GUID%20Generator~_D5O4za6bToqQAfi/most-recent)**
>
> A Globally Unique Identifier (GUID) generator for KNIME. This component is useful for creating a unique key that is not based on Row ID. This component will ap…

---

_[View the full topic](https://forum.knime.com/t/generate-a-unique-id-guid-for-all-records-during-excel-to-sql-table-insertion-in-knime/84056)._
