如何在Oracle中存储GUID? [英] How should I store a GUID in Oracle?
本文介绍了如何在Oracle中存储GUID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我来自SQL服务器世界,我们有uniqueidentifier。在oracle中有等效的吗?此列将被频繁查询,因此性能是关键。
I am coming from the SQL server world where we had uniqueidentifier. Is there an equivalent in oracle? This column will be frequently queried so performance is the key.
我在.Net中生成GUID,并将其传递给Oracle。由于几个原因它不能由oracle生成所以我不能使用序列。
I am generating the GUID in .Net and will be passing it to Oracle. For a couple reasons it cannot be generated by oracle so I cannot use sequence.
推荐答案
CREATE table test (testguid RAW(16) default SYS_GUID() )
此博客研究了相对性能。
这篇关于如何在Oracle中存储GUID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文