日期:2014-05-16  浏览次数:20814 次

oracle 批量更新问题
表A
  A1 A2
90909099 90909
80808 80808008

如果字段A1的内容比A2长,则把A2的字段更新成A1一样,请问这个update语句该怎么写?

------解决方案--------------------
探讨
SQL code
update a set a2=a1 where length(a2)>length(a2)