简体   繁体   English

OpenOffice.org Base中的UUID

[英]UUID in OpenOffice.org Base

How would one go about using a UUID as a primary key in an OpenOffice.org Base database? 在OpenOffice.org Base数据库中,如何使用UUID作为主键?

I have a need to gather data on multiple, unnetworked PCs that I can't install software on (I am using OpenOffice.org Portable). 我需要在无法安装软件的多台未联网的PC上收集数据(我正在使用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. 我相信UUID / GUID是理想的解决方案,但是对于我所有的Google搜索和摆弄软件的人,我都不知道如何实际实现它。

(If there is no solution, is there any alternate approach?) (如果没有解决方案,是否有其他替代方法?)

I do not know how to implement UUID, but you could take something like the MAC number of the computer. 我不知道如何实现UUID,但是您可以使用类似计算机MAC地址的名称。 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. 在花费很多时间之前,您应该考虑最多拥有多少台计算机,以及由具有相同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. 对于10亿台计算机,UUID可能约为零,但是如果您仅期望一千台计算机,那么MAC地址可能就可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM