update b set b.sys_num=a.sys_num,b.create_num= a.order_timefrom B b join A a on b.id =a.ser_id
不用,直接用一条语句就行了