I have an SQL table called "Clients". It has a CustomerNumber field with values of type "0001234567", that is, they consist only of numbers, but some of them include leading 0s. So, when I try to run something like
sqlFetch(channel=myconn, sqtable="Customers", stringsAsFactors=FALSE)
it returns a table of my customers in which the CustomerNumber field is numeric (instead of a character), and therefore I lose all these leading 0s.
Is there a way to specify the type of field for a column or an alternative solution that will not truncate all my leading 0s?
source
share