iamazy / elasticsearch-sql

parse sql into elasticsearch dsl with antlr4
https://iamazy.github.io/elasticsearch-sql/
MIT License
340 stars 89 forks source link

请教大佬 #8

Closed lqiiiang911 closed 5 years ago

lqiiiang911 commented 5 years ago

请问大佬,sql查询支持布尔值类型查询么,怎么查询呢?

iamazy commented 5 years ago

可以的,如果直接等于true或者false不好使,那就将true或者false变成字符串就行了 示例

select * from student where isExisted=true  这种报错就用下面的
select * from student where isExisted='true'
lqiiiang911 commented 5 years ago

多谢大佬🙏

iamazy commented 5 years ago

我怎么没有这个问题,可以截图看一下吗

lqiiiang911 commented 5 years ago

是我弄错了,现在可以了