OpenOffice.org Base 中的 UUID
如何使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道如何实现 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.