C# 中如何读取出来的时间戳为 byte[] 类型的话,用以下方式转换成 16进制字符串
string tmpUfts = "0x"+ BitConverter.ToString(dataRow["ufts"] as System.Byte[], 0).Replace("-","");
以下为SQL中的转换
select cast(ufts as varbinary(8)) as ufts16, * from a_ufts
where ufts16 = 0x0000000012CE0DE7
C# 中如何读取出来的时间戳为 byte[] 类型的话,用以下方式转换成 16进制字符串
string tmpUfts = "0x"+ BitConverter.ToString(dataRow["ufts"] as System.Byte[], 0).Replace("-","");
以下为SQL中的转换
select cast(ufts as varbinary(8)) as ufts16, * from a_ufts
where ufts16 = 0x0000000012CE0DE7
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。