Solved

Boolean Field

Posted on 2000-02-22
3
1,485 Views
Last Modified: 2008-03-17
How can I set the value of a boolean field in an sql query?
0
Comment
Question by:Aikema
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Author Comment

by:Aikema
ID: 2549240
ie. in my query am i supposed to feed it a 0 or 1 or should i use true or false instead.
0
 
LVL 7

Accepted Solution

by:
spiridonov earned 20 total points
ID: 2549308
You should use 0/1. Note, that this field can't be null.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 2610013
Note that a variable of type bit can be NULL
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question