C#技术百科
问问你的心你有没有信心 做事情要专一坚定,执着

嵌套查询例子

SELECT C_ID,isnull(FirstSort,'')+'-'+isnull(SecSort,'')+'-'+isnull(Sort,'') SortValue,isnull((select Column_Name from Sort with (nolock) where Column_ID=EnterpriseLibrary.FirstSort),'')+'>>'+isnull((select Column_Name from Sort with (nolock) where Column_ID=EnterpriseLibrary.SecSort),'')+'>>'+isnull((select Column_Name from Sort with (nolock) where Column_ID=EnterpriseLibrary.Sort),'') SortPath FROM EnterpriseLibrary  with (nolock) where C_ID=@C_ID

红色标记的为嵌套查询例子

posted on 2009-04-08 16:01  王德田  阅读(586)  评论(0编辑  收藏  举报