嵌套查詢例子

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

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


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 望江县| 阳原县| 沙坪坝区| 永安市| 金平| 连城县| 古蔺县| 香港| 沅江市| 舒兰市| 高安市| 荔浦县| 韩城市| 巨鹿县| 文水县| 根河市| 古交市| 沿河| 万山特区| 汕头市| 北流市| 济阳县| 深泽县| 理塘县| 上饶县| 星座| 洪湖市| 临漳县| 福安市| 札达县| 寻甸| 莲花县| 丹凤县| 东光县| 兴化市| 湘潭市| 灵山县| 衡东县| 孝感市| 万载县| 调兵山市|