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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

conver float to string in the query

Status
Not open for further replies.

Kendel

Programmer
Apr 24, 2002
1,512
US
Hi All,

I know I can break a column's value after I get the result set but can I break it in the SQL statement. something like:

Code:
Select Left(column2,4) as first4, Right(column2,4) as last4
from ...blab ..blab

The data type of column2 is a float so I need to convert it to a string first. Can someone please help me with syntax? Thanks.

 
If you've ever ran into this problem, it's:

SELECT LEFT(CHAR(COLUMN NAME),5) ....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top