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

相关文章:

  • 2021-07-13
  • 2022-12-23
  • 2021-09-19
  • 2021-05-22
  • 2022-12-23
  • 2021-10-15
  • 2021-04-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 1970-01-01
  • 2022-02-08
  • 2021-12-23
相关资源
相似解决方案