Add generating replace sql statement.