update a set eb_limitdate=(select max(s_limitdate) from b where a.eb_id=b.s_id)
where exists(select 1 from b where a.eb_id=b.s_id);

解决方案 »

  1.   

    最后一句是什么意思select 1 from b where a.eb_id=b.s_id,这1是指什么??
      

  2.   

    bzszp(SongZip) 的方法试了一下,出‘ORA-01401 error:列值插入太大’ 了?
    咋办呢?!
      

  3.   

    是指所有的id相关联的记录都做更新.
    update当然要加个条件楼
      

  4.   

    bzszp(SongZip) 的方法试了一下,出‘ORA-01401 error:列值插入太大’ 了?
    咋办呢?!你把s_limitdate字段的大小改大点,应该跟eb_limitdate一样大啊