SELECT form_data_id_str, form_content_id from (SELECT cast(form_data_id AS varchar) AS form_data_id_str, form_content_id, evict_status FROM cc.FORM_CONTENT ) AS s
WHERE s.EVICT_STATUS=4 and s.form_data_id_str LIKE '12%';
SELECT CAST(your_numeric_column AS CHAR) AS string_column FROM your_table;