I have a table with 58 different columns and would like to create a View that treats the DATE fields as VARCHAR , without my having which discriminate all columns in the View creation.
CREATE VIEW VW_TESTE AS SELECT * FROM TABELA
As in the example:
ID, BIGINT
NAME, VARCHAR
LOGIN, DATE
REGISTRATION, DATE
EMAIL, VARCHAR
And return this:
ID, BIGINT
NAME, VARCHAR
LOGIN, VARCHAR
INSCRICAO, VARCHAR
EMAIL, VARCHAR
OR
ID, BIGINT
NAME, VARCHAR
EMAIL, VARCHAR
I tried to make the command "Select * from Table where data_type = 'DATE'"
But it did not work.