Home > Database > Mysql Tutorial > SQL查询语句中的bool类型字段值的写法

SQL查询语句中的bool类型字段值的写法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:22:05
Original
3819 people have browsed it

SQL查询语句中的bool类型字段值的写法 没有系统地看过SQL语句的写法说明,只是看了一些常用SQL语句的例子。今天写了条select * from table where sex='true',老是提示标准数据类型不匹配(我用的Access),检查了半天,原来sex字段作为bool(是/否)类型,在SQL

   SQL查询语句中的bool类型字段值的写法

  没有系统地看过SQL语句的写法说明,只是看了一些常用SQL语句的例子。今天写了条select * from table where sex='true',老是提示标准数据类型不匹配(我用的Access),,检查了半天,原来sex字段作为bool(是/否)类型,在SQL语句中其值不需要用''引起来。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template