The main aim of this paper is twofold. (1) Exact solutions of a scalar field in the Schwarzschild spacetime are presented. The exact wave functions of scattering states and bound-states are presented. Besides the exact solution, we also provide explicit approximate expressions for bound-state eigenvalues and scattering phase shifts. (2) By virtue of the exact solutions, we give a direct calculation for the discontinuous jump on the horizon for massive scalar fields, while in literature such a jump is obtained from an asymptotic solution by an analytic extension treatment.Corresponding to the region outside the horizon, i.e., r ∈ [2M, ∞), the range of the variable z in the confluent Heun equation is z ∈ [1, ∞). The confluent Heun equation (3.1) has two singular points, z = 1 and z → ∞, in the region z ∈ [1, ∞) [46]. These two singular points just correspond to the two singular points of the Schwarzschild spacetime, r = 2M and r → ∞.