如题,
oracle中是用to_char( "nnnnnn ", "0xxxxx ")转换的,
但不知道Sqlserver中如何转换呢?好象是用convert函数,
但不知道怎么用法,知道的朋友告诉下,谢谢
------解决方案--------------------
select cast(18 as varbinary(4))
----------
0x00000012
(所影响的行数为 1 行)
------解决方案--------------------
select cast( 'A ' as varbinary(4))
----------
0x41
(1 row(s) affected)