Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: SQL Server
Expertise: Beginner
Sep 14, 1999

Converting from Varchar to Number

Question:
I have a table that contains numbers defined as varchar. How do I convert from varchar to number?

Answer:
Try using the CONVERT function.

If that is not an allowed conversion, try building a concordance table that lets you look up what you have and replace it with the second column.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap