OpenOffice.org Base 中的 UUID

发布于 2024-08-05 08:40:22 字数 238 浏览 3 评论 0原文

如何使用 UUID 作为 OpenOffice.org Base 数据库中的主键?

我需要在多台无法安装软件的未联网 PC 上收集数据(我是使用 OpenOffice.org Portable)。收集数据后,它将合并到一个数据库中。

我相信 UUID/GUID 是理想的解决方案,但对于我所有的谷歌搜索和摆弄软件,我不知道如何实际实现它。

(如果没有解决办法,有没有其他办法?)

How would one go about using a UUID as a primary key in an OpenOffice.org Base database?

I have a need to gather data on multiple, unnetworked PCs that I can't install software on (I am using OpenOffice.org Portable). After gathering data, it will be merged into a single database.

I believe that a UUID/GUID is the ideal solution, but for all my Googling and fiddling with the software, I can't figure out how to actually implement it.

(If there is no solution, is there any alternate approach?)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

安穩 2024-08-12 08:40:22

我不知道如何实现 UUID,但你可以使用计算机的 MAC 号之类的东西。在花费大量时间在此之前,您应该考虑最多有多少台计算机以及两台具有相同 ID 的计算机所造成的损坏。对于 UUID,即使有 10 亿台机器,它的值也可能为零,但如果您只期望有 1000 台机器,那么 MAC 地址也许就可以了。

I do not know how to implement UUID, but you could take something like the MAC number of the computer. Before spending a lot of time on this, you should consider how many computers that you would have at most and the damage caused by two machines having the same ID. With UUID is is probably something like zero with even a billion machines, but if you only expect a thousand machines then maybe the MAC address will be alright.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文