Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CONVERT function 1

Status
Not open for further replies.

gojohnnygogogogo

Programmer
May 22, 2002
161
0
0
GB
Hello,
How can I convert or cast a text field to a number field ?

I have tried things like :

SELECT CONVERT(number,PE) AS PEnumber

what is it ?


cheers.
 
Give these a crack,
SELECT Clng(PE) AS PEnumber 'Converts to long
SELECT Cdbl(Pe) AS PEnumber 'Converts to double
SELECT Cint(PE) AS PEnumber 'Converts to integer


Cheers

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top