先执行: update t_receive set f_checkoutid = null where f_id = '接待单号' 再执行: delete from t_checkout where f_id = '结账单号'