嵌套查詢例子

          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)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 临沧市| 镇安县| 衡南县| 武山县| 高碑店市| 都江堰市| 施秉县| 江永县| 横山县| 万源市| 邹城市| 乐至县| 宜黄县| 祁东县| 綦江县| 普安县| 同江市| 长治县| 兴化市| 建德市| 克拉玛依市| 全椒县| 兴隆县| 巴彦淖尔市| 兴化市| 石嘴山市| 禄劝| 武宣县| 咸丰县| 江门市| 阳江市| 方正县| 花莲市| 三江| 南平市| 东乡| 仪征市| 罗江县| 奎屯市| 忻州市| 民权县|