update `order` a,orderperson b set b.trainorgid = a.trainorgid ,b.traintype=a.traintype where a.id=b.orderid