On a smooth manifold $M$ we introduce the concept of Codazzi-equivalent Riemannian
metrics. The curvature tensors of two Codazzi-equivalent metrics satisfy a simple relation. The
results together with known facts about Codazzi tensors give a method of proof for old and new local
and global uniqueness results for Riemannian manifolds and Euclidean hypersurfaces.