Writing bool type Field Values in SQL query statements

Source: Internet
Author: User
The writing of bool Field Values in SQL query statements does not systematically explain the writing of SQL statements, but only some examples of common SQL statements. Today, I wrote a select * fromtablewheresextrue command, which always prompts that the standard data type does not match (I used Access). After checking for half a day, the former sex field is used as the bool (whether) type.

The writing of bool Field Values in SQL query statements does not systematically explain the writing of SQL statements, but only some examples of common SQL statements. Today, I wrote a select * from table where sex = 'true' message, which always prompts that the standard data type does not match (I used Access). After checking for a long time, the original sex field is of the bool (yes/no) type.

Writing bool type Field Values in SQL query statements

I have not systematically read the description of SQL statements, but I have read some examples of common SQL statements. Today, I wrote a select * from table where sex = 'true' message, which always prompts that the standard data type does not match (I used Access). After checking for a long time, the sex field is of the bool (yes/no) type and does not need to be caused by ''in the SQL statement.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.