Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

convert data

$
0
0

i m trying to use except to match some columns 

select [src] from book5
except
select [home_phone] from Lead

the src column is float, and the home_phone col is char, i m getting this error 

Msg 8114, Level 16, State 5, Line 1
Error converting data type varchar to float

i tried to use this to convert the src 

alter table book5
alter column src varchar(14) 

but i got a number with +9 and something, the both columns should have number only( they are phone numbers)

what should i do to get the correct data 

thank you 


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>