In cases of mortgages given to secure the payment of money by installments, each of the installments mentioned in such mortgage, after the first, shall be taken and deemed to be a separate and independent mortgage, and such mortgage, for each of such installments, may be foreclosed in the same manner, and with like effect, as if such separate mortgage were given for each subsequent installment; and a redemption of any such sale shall have like effect as if the sale for such installment had been made upon a prior, independent mortgage.
SDCL 21-48-5