SQL Syntax

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cory Lamle

    #1

    SQL Syntax

    ------_=_NextPart_001 _01C35080.A8963 C80
    Content-Type: text/plain

    Contents are Direct Alliance Corporation CONFIDENTIAL
    -
    How do you type check in mysql. I have a column of type varchar(20) with
    both floats and strings. Is there a way to check the type?

    Example:
    Select
    If(is_float(col 1), 'is a float', 'not a float') as
    type
    From table

    Thxs
    Cory
    This message is for the designated recipient(s) only and contains Direct
    Alliance Corporation privileged and confidential information.
    If you have received it in error, please notify the sender immediately and
    delete the original.
    Any other use of this email is prohibited.


    ------_=_NextPart_001 _01C35080.A8963 C80--
Working...