• 设备
    • 今日
    • 0

    生成用户登录ID

    update HR_USER_ZSJ_推广_ok set login_name =fn_getpy_1(名称) || '@' ||   
                   (case when
                    newou like '%潮州供电局%' then 'cz.gd.csg.cn' when
                    newou like '%东莞供电局%' then 'dg.gd.csg.cn' when newou like '%佛山供电局%' then 'fs.gd.csg.cn' when
                    newou like '%河源供电局%' then 'hy.gd.csg.cn' when newou like '%惠州供电局%' then 'hz.gd.csg.cn' when
                    newou like '%江门供电局%' then 'jm.gd.csg.cn' when newou like '%揭阳供电局%' then 'jy.gd.csg.cn' when
                    newou like '%清远供电局%' then 'qy.gd.csg.cn' when newou like '%汕头供电局%' then 'st.gd.csg.cn' when
                    newou like '%汕尾供电局%' then 'sw.gd.csg.cn' when newou like '%韶关供电局%' then 'sg.gd.csg.cn' when
                    newou like '%云浮供电局%' then 'yf.gd.csg.cn' when newou like '%湛江供电局%' then 'zj.gd.csg.cn' when
                    newou like '%肇庆供电局%' then 'zq.gd.csg.cn' when newou like '%中山供电局%' then 'zs.gd.csg.cn' when
                    newou like '%珠海供电局%' then 'zh.gd.csg.cn' when newou like '%茂名供电局%' then 'mm.gd.csg.cn' when
                    newou like '%梅州供电局%' then 'mz.gd.csg.cn' when newou like '%阳江供电局%' then 'yj.gd.csg.cn' when
                    newou like '%广东电网公司电力调度控制中心%' then 'gpdc.gd.csg.cn' when
                    newou like '%广东电网公司信息中心%' then 'xxzx.gd.csg.cn' when
                    newou like '%广东电网有限责任公司教育培训评价中心%' then 'pxzx.gd.csg.cn' when
                    newou like '%广东电网公司电力科学研究院%' then 'dky.gd.csg.cn' when
                    newou like '%广东省输变电工程公司%' then 'sbd.gd.csg.cn' when
                    newou like '%广东创成建设监理咨询有限公司%' then 'xxzx.gpgc.local' when
                    newou like '%广东电力投资有限公司%' then 'xxzx.gpgc.local' when
                    newou like '%广东电网公司电网规划研究中心%' then 'xxzx.gpgc.local' when
                    newou like '%广东电网公司管理科学研究院%' then 'xxzx.gpgc.local' when
                    newou like '%广东电网公司物流服务中心%' then 'xxzx.gpgc.local' when
                    newou like '%广东广华实业进出口有限公司%' then 'xxzx.gpgc.local' when
                    newou like '%广东省电力实业发展总公司%' then 'xxzx.gpgc.local' when
                    newou like '%广东省电力通信有限公司%' then 'xxzx.gpgc.local' when
                    newou like '%广东省电力物资总公司%' then 'xxzx.gpgc.local' when
                    newou like '%汕特广南电力工程公司%' then 'st.gpgc.local' when         
                    newou like '%汕头万丰热电有限公司%' then 'st.gpgc.local' when
                    newou like '%广东电网发展研究院%' then 'gsbb.gpgc.local' when
                    newou like '%广东电网公司服务中心%' then 'gsbb.gpgc.local' when
                    newou like '%广东电网公司新闻中心%' then 'gsbb.gpgc.local' when
                    newou like '%/公司本部%' then 'gsbb.gd.csg.cn'
                    else  '' end)
     where mark ='mridok' or mark is null
    来自:PC 未知位置
    上一篇: to_char 与 to_date 用法
    您可能还喜欢这些:

    亲,沙发正空着,还不快来抢?

    评论审核已开启:即评论经审核才能正常显示! 记住我的个人信息 回复后邮件通知我