• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1495
  • Last Modified:

Boolean Field

How can I set the value of a boolean field in an sql query?
1 Solution
AikemaAuthor Commented:
ie. in my query am i supposed to feed it a 0 or 1 or should i use true or false instead.
Victor SpiridonovCommented:
You should use 0/1. Note, that this field can't be null.
Guy Hengel [angelIII / a3]Billing EngineerCommented:
Note that a variable of type bit can be NULL
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now