﻿IF EXISTS (SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'usuario' AND COLUMN_NAME ='inativo')
BEGIN
	UPDATE usuario SET identif = identif + '_REM', Removido = 1 WHERE inativo = 1 AND Removido != 1;
END