无法检索 sql 语句中的行 [英] Unable to retrieve rows in sql statement
本文介绍了无法检索 sql 语句中的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想选择有第 29 章的书和有第 30 章的书等等.我尝试了下面的代码,但它只返回有第 29 章而不是第 30、31、32 章的书
i want to select books which have chapter 29 and books which have chapter 30 and so on. I tried the code below but it only returns books that have chapter 29 but not 30, 31, 32
SELECT distinct book FROM `bible_kjv` WHERE chapter in (29,30,31,32,33,34,35);
请问如何重写代码
推荐答案
代码似乎没问题.会不会是数据类型的问题?章节"列设置为什么类型?
The code seems to be fine. Could it be a problem with data types? What type is the column 'chapter' set to?
这篇关于无法检索 sql 语句中的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文