本文介绍了如何检索插入的相同GUID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 亲爱的所有人, 我在DB中保存GUID(System.Guid)时遇到一个问题。 如果我创建一个命令,将一个guid插入一个带有二进制(16)列的表来保存它,并且当我检索回来时,实际插入到数据库中的值与guid的值不匹配。 如果您使用连接器检索插入的值并将其与原始值进行比较,则它们将不匹配。 我正在使用5.6数据库。 我使用Binary(16)数据类型来保存GUID(MySQL数据库)是受限制的,因为我正在使用第三派对.dll和第三方数据库表使用二进制(16)数据类型。 我认为这是旧数据库中的错误,但我也面临5.6。有没有解决这个问题。 感谢您的支持。解决方案 Dear All,I am facing one issue while saving GUID (System.Guid) in DB.If I create a command to insert a guid into a table with a Binary(16) column to hold it and the value actually inserted into the database does not match the value of the guid when I retrieve back.If you use the connector to retrieve the inserted value and compare it with the original, they won't match.I'm using a 5.6 database.It is restricted for me to use Binary(16) datatype for saving GUID(MySQL Database) as I am using third party .dll and third party database tables which are using Binary(16) datatype.I think this was bug in old DB but I am facing in 5.6 also. Is there any resolution of this.Thanks for your support. 解决方案 这篇关于如何检索插入的相同GUID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!