This is my table:
id| name | address | more_info
_______________________________
0 | John | NY | infoa
1 | Bill | PH | infob
2 | Bob | KS | infoc
Where id
type is BIGINT
.
I have this query:
SELECT * FROM myTable
BIGINT is too long for some applications, thus I want to retrieve the id
as a VARCHAR
. Can I cast the id
to VARCHAR
in the result set without having to name each specific column I want to retrieve in the result set? I.E, I want to keep the actual query SELECT *
, and not have to put SELECT id, name, address
etc.