1
我怎樣才能鑄造uniqueidentifier二進制在Sql? 謝謝。鑄造uniqueidentifier到二進制
我怎樣才能鑄造uniqueidentifier二進制在Sql? 謝謝。鑄造uniqueidentifier到二進制
基本上你將需要在SQL Server中使用CAST -
DECLARE @program_guid uniqueidentifier, @program_binary binary(16)
--
SELECT @program_guid = '327EBEA7-3D4E-473A-8D72-7CB68AB51F73'
SELECT @program_binary = CAST(@program_guid AS binary(16))