Equivalent boolean?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bruce D

    #1

    Equivalent boolean?

    I'm working with VB.NET and I'm pulling data from MySQL. .NET is looking
    for a boolean value...and I'm wondering what type I should make the field in
    my database.

    Any help is appreciated.

    -bruce


  • Sal Young

    #2
    Re: Equivalent boolean?

    If you are using MySQL 4.1.0. or newer, the BOLEAN type will be your best
    bet. If not, you could use the TINYINT(1) UNSIGNED. Look it up in the
    MySQL documentation under "Overview of Numeric Types".

    - SYoung


    "Bruce D" <brucexwxduncan x@hotmail.com> wrote in message
    news:111utho38h m87b0@corp.supe rnews.com...[color=blue]
    > I'm working with VB.NET and I'm pulling data from MySQL. .NET is looking
    > for a boolean value...and I'm wondering what type I should make the field
    > in
    > my database.
    >
    > Any help is appreciated.
    >
    > -bruce
    >
    >[/color]


    Comment

    • Rich R

      #3
      Re: Equivalent boolean?


      "Bruce D" <brucexwxduncan x@hotmail.com> wrote in message
      news:111utho38h m87b0@corp.supe rnews.com...[color=blue]
      > I'm working with VB.NET and I'm pulling data from MySQL. .NET is looking
      > for a boolean value...and I'm wondering what type I should make the field[/color]
      in[color=blue]
      > my database.
      >
      > Any help is appreciated.
      >
      > -bruce[/color]
      Hi Bruce,
      Dot net is not looking for anything. You could make it simply alpha(1) "Y",
      "N" or 0,1. It is up to you. MS used to use -1 for true and 0 for false.
      Hmm?


      Comment

      Working...