T-SQL HIERACHYID.GETROOT

SELECT NodeId.ToString() AS NodeIdPath, dbo.fnGetFullDisplayPath(NodeId) AS NodeIdDisplayPath,*
 FROM  FAMILY
 WHERE NodeId = hierarchyid::GetRoot()
GO

NodeIdPathNodeIdDisplayPathNodeIdNodeLevelFamilyIdTitle
/爷爷0x01爷爷

你可能感兴趣的:(t-sql)