Cast an entire field from VARCHAR to FLOAT

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cyprus106
    New Member
    • Apr 2008
    • 31

    Cast an entire field from VARCHAR to FLOAT

    How do I cast the entire table field from varchar to float?

    Granted, I know the risks involved with doing this, but nonetheless...
  • Delerna
    Recognized Expert Top Contributor
    • Jan 2008
    • 1134

    #2
    Do you mean in the table itself or in a query using the table?

    Convert(type,fi eld) is what you use in a query
    To change it in the table just design the table and change the type.
    I say now more on that as you say you are aware of the danders

    Comment

    • ck9663
      Recognized Expert Specialist
      • Jun 2007
      • 2878

      #3
      Here's the complete CAST and CONVERT syntax

      -- CK

      Comment

      Working...