原文:http://www.cnblogs.com/wuyifu/archive/2012/11/21/2781437.html
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[]类型,并通过SQL查询将其转换为16进制字符串,同时展示了在SQL中如何进行相应转换的方法。
418

被折叠的 条评论
为什么被折叠?



