Home > database >  Hexadecimal string flow, such as' 0 x01010101 ', how to insert the vabinary?
Hexadecimal string flow, such as' 0 x01010101 ', how to insert the vabinary?

Time:09-29

Hexadecimal string flow, such as' 0 XFFFFFFFFFFFFFFFFF ', how to insert or update the vabinary?

CodePudding user response:

Declare @ TB table (a varbinary (Max));
Insert the @ TB values (convert (varbinary (Max), '0 XFFFFFFFFFFFFFFFFF))
Select * from @ TB

CodePudding user response:

Article has been resolved, the entire database command to @ SQL varchar type, use the exec (@ SQL), so that you can write the varchar type into varbinary,
  • Related