嵌套查詢例子

          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 sanmao 閱讀(670) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 岳池县| 日照市| 昆山市| 灵丘县| 家居| 鄯善县| 阜城县| 麻栗坡县| 仙桃市| 镇赉县| 怀集县| 彰武县| 始兴县| 凉城县| 建瓯市| 惠东县| 陵川县| 茌平县| 尼勒克县| 东安县| 怀柔区| 林西县| 承德市| 兴化市| 昌乐县| 巴青县| 西贡区| 加查县| 沅陵县| 商河县| 瑞安市| 门源| 德阳市| 宜兴市| 民乐县| 铜陵市| 宜川县| 大石桥市| 巴南区| 临江市| 崇仁县|