/*看订单主表的结构 ,还有关闭状态字段名和关闭状态的值比如采购订单主表Porder_master ,状态curstatus 当curstatus='2'的时候表示关闭 curstatus<'5'的时候表示未完成的订单*/update Porder_masterset curstatus='2'where year(makedate)=2014 and curstatus<'5'