# Passing UUID() to MySQL

**URL:** <https://forum.inductiveautomation.com/t/passing-uuid-to-mysql/92430>\
**Category:** Ignition\
**Created:** [June 27, 2024, 2:12am UTC](https://forum.inductiveautomation.com/t/passing-uuid-to-mysql/92430 "2024-06-27T02:12:29Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 27, 2024, 1:54pm UTC](https://forum.inductiveautomation.com/t/passing-uuid-to-mysql/92430/5 "2024-06-27T13:54:58Z")

</div>

Note that many databases cannot return UUIDs that are auto-generated by your database (but [see the exception here](https://forum.inductiveautomation.com/t/bug-postgre-getkey-error-returning-uuid-key/79458/18)). But the whole point of UUIDs is that they can be generated at any point with extreme confidence of no collisions. That means if you need the UUID later in your code, you should generate it with java as Nick shows, and hang onto it.

(If your DB supports UUID columns, **don't** stringify it.)

---

_[View the full topic](https://forum.inductiveautomation.com/t/passing-uuid-to-mysql/92430)._
