About 299,000 results
Open links in new tab
  1. How to create a yes/no boolean field in SQL server?

    In SQL you use 0 and 1 to set a bit field (just as a yes/no field in Access). In Management Studio it displays as a false/true value (at least in recent versions). When accessing the database through ASP.NET it will expose the field as a boolean value.

  2. SQL Data Types for MySQL, SQL Server, and MS Access - W3Schools

    Each column in a database table is required to have a name and a data type. An SQL developer must decide what type of data that will be stored inside each column when creating a table.

  3. How to add a boolean datatype column to an existing table in sql?

    Oct 25, 2016 · I have a table called person in my database. I want to add another column to the same table and it's a Boolean datatype column. I have tried following queries but it says syntax error near default.

  4. SQL Boolean Data Type - Database Star

    Aug 6, 2019 · Is there an SQL boolean data type? Some vendors do, other's don't. Learn how to create an SQL boolean column in this guide.

  5. How can I declare a Boolean parameter in SQL statement?

    Aug 31, 2009 · Although bit is the closest match, bit isn't boolean. You can't do this in TSQL, for instance: IF @isDeleted .... You must do this instead IF @ isDeleted = 1 .... SQL Server recognizes 'TRUE' and 'FALSE' as bit values. So, use a bit data type! That returns 1.

  6. SQL Boolean Tutorial - SQL Shack

    Nov 28, 2022 · How to create a table with a bit data type column. The following example will create a table named myBooleanTable with 2 columns. An ID column with the integer data type and the ispair column with a bit data type.

  7. SQL Boolean Bit Operator - Online Tutorials Library

    Learn about SQL Boolean Bit Operators, their usage, and how to implement them in your SQL queries effectively. Dive into the SQL Boolean Bit Operator and improve your database management capabilities with detailed insights.

  8. Boolean Data Type in SQL | Useful Codes

    Jan 19, 2025 · Understanding how Boolean values work is crucial for managing logical operations in databases, and this article will explore the intricacies of the Boolean data type, its applications, and best practices in SQL.

  9. Boolean Expressions in SQL - GeeksforGeeks

    Jan 8, 2025 · Boolean expressions are a core concept in SQL, helping to filter and manipulate data based on conditions. These expressions evaluate to one of three Boolean values: TRUE, FALSE, or UNKNOWN. They are extensively used in WHERE clauses, HAVING clauses, and conditional statements to query and retrieve specific data from a database.

  10. MySQL BOOLEAN Data Type - MySQL Tutorial

    Summary: in this tutorial, you will learn about MySQL BOOLEAN data type and how to use it to store Boolean values in the databases. MySQL does not have a dedicated Boolean data type. Instead, MySQL uses TINYINT(1) to represent the BOOLEAN data type.

  11. Some results have been removed
Refresh