标签:int href varchar als bin logs eid class reference
DECLARE @HeapRid BINARY(8) SET @HeapRid = 0x6813000001000600SELECT CONVERT (VARCHAR(5), CONVERT(INT, SUBSTRING(@HeapRid, 6, 1) + SUBSTRING(@HeapRid, 5, 1))) + ‘:‘ + CONVERT(VARCHAR(10), CONVERT(INT, SUBSTRING(@HeapRid, 4, 1) + SUBSTRING(@HeapRid, 3, 1) + SUBSTRING(@HeapRid, 2, 1) + SUBSTRING(@HeapRid, 1, 1))) + ‘:‘ + CONVERT(VARCHAR(5), CONVERT(INT, SUBSTRING(@HeapRid, 8, 1) + SUBSTRING(@HeapRid, 7, 1))) AS ‘Fileid:Pageid:slot‘
标签:int href varchar als bin logs eid class reference
原文地址:http://www.cnblogs.com/lwhkdash/p/6728715.html