I have a field with many numbers. I don't know what type to save into the database. Currently, I plan to save it in binary, but how can I restore it to text when it is read out?
Use cast to convert
select cast (field name as varchar) from tableA.
If you want to visit
select cast (field name as varchar) as name from tableA Then you can access name.