ALTER TABLE TBARQUIVOS_COBRANCA
    ADD USUARIO_NOME VARCHAR(100);
	
CREATE OR ALTER function FORMATDATETIME (
    CAMPO timestamp)
returns varchar(16)
AS
BEGIN
 RETURN (
            lpad(EXTRACT(DAY    FROM Campo) ,2,'0') ||'/'||
            lpad(EXTRACT(MONTH  FROM Campo) ,2,'0') ||'/'||
            lpad(EXTRACT(YEAR   FROM Campo) ,4,'0') ||' '||
            lpad(EXTRACT(hour   FROM Campo) ,2,'0') ||':'||
            lpad(EXTRACT(minute FROM Campo) ,2,'0')
        );
END;