In this paper,we aim to study the existence and uniqueness of square-mean almost automorphic mild solution to a stochastic delay equation under some suitable assumptions imposed on its coefficients.As an application,almost automorphic mild solutions to a class of stochastic partial functional differential equations are analyzed,which shows the feasibility of our results.