至高吴上(Alfa.wu)

一个人,一生,能坚持做好一件事情是多么的牛XX啊!!!

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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

posted on 2012-11-21 20:33  Alfa  阅读(5110)  评论(0编辑  收藏  举报