隨筆-71  評論-5  文章-0  trackbacks-0
          str.append(" left join (
          select customer_no,(case  when auth_type=1 then count(route) when auth_type=2 then count(route) when auth_type=3 then count(route) end) as auth_image from h_auth_info where audit_sign=1) h6
          ");




          select  auth_info.customer_no,
          (case when auth_info.auth_image=3 then 1 
                when auth_info.auth_image<3 then 0 
          end)
          as auth_result
          from(
          select customer_no,
          (case  when auth_type=1 then count(route) 
                 when auth_type=2 then count(route) 
                 when auth_type=3 then count(route) 
           end) 
          as auth_image 
          from h_auth_info 
          where audit_sign=1  and customer_no='18632116655'
          )  auth_info
          posted on 2014-12-26 09:14 藤本薔薇 閱讀(195) 評論(0)  編輯  收藏

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


          網站導航:
           
          主站蜘蛛池模板: 泰州市| 荆州市| 建始县| 治多县| 滦南县| 嘉定区| 耿马| 沛县| 亚东县| 新和县| 曲靖市| 岱山县| 天峻县| 三门县| 电白县| 类乌齐县| 祁门县| 武邑县| 临清市| 安阳市| 开平市| 永州市| 商丘市| 五莲县| 樟树市| 宜春市| 安吉县| 巴东县| 淮北市| 天气| 左贡县| 萍乡市| 遵化市| 郸城县| 城市| 平湖市| 江津市| 连山| 乐平市| 腾冲县| 四子王旗|