I have already come across a conversion function. As far as I understand, the basic syntax is:
select convert(columnName, targetFieldType) as newColumnName from table;
Running this command does not give me any errors, but when I check the data types, they do not change. Even when I use commit; the data remains unchanged. In particular, I am trying to convert data with a long type to varchar. Any ideas?
source
share