update bc1 
set cp_order=hb_cjhb.sqbh  
FROM bc1,hb_cjhb
where bc1.sse_ref=hb_cjhb.cjbh要有FROM子句。

解决方案 »

  1.   

    update bc1 set bc1.cp_order=hb_cjhb.sqbh from bcl,hb_cjhb where bc1.sse_ref=hb_cjhb.cjbh
      

  2.   

    update bc1 
    set cp_order=a.sqbh  
    FROM hb_cjhb a
    where sse_ref=a.cjbh
      

  3.   

    分先不能给,因为我是在Foxpro下实现的,不是在SQL Server中
    我再想想办法,如果不行的话就给分了。
      

  4.   

    你可以这样试试
    set talk off 
    select 1
    use bc1 
    select 2
    use hb_cjhb 
    select 1
    DO WHILE .not. eof()
     repl  cp_order with hb_cjhb.sqbh
    skip 
    select 2
    skip 
    select 1
    enddo
    set talk on