Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1492
  • Last Modified:

Boolean Field

How can I set the value of a boolean field in an sql query?
0
Aikema
Asked:
Aikema
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.
0
 
Victor SpiridonovCommented:
You should use 0/1. Note, that this field can't be null.
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
Note that a variable of type bit can be NULL
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

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