Fork me on GitHub

substr()

              
update ncdata.er_bxzb c
   set c.zyx4 = 0
 where c.djbh in (select a.djbh
                    from ncdata.er_bxzb a
                    left join ncdata.org_orgs b
                      on a.pk_org = b.pk_org
                   where a.djlxbm = '2647'
                     and substr(a.zyx4, 0, 1) = '-'
                   order by a.djrq);

posted @ 2016-08-30 11:30  ZZZZW  阅读(146)  评论(0编辑  收藏  举报
AmazingCounters.com