我已使用此查询从 sqlite 数据表中获取数据:
select cat_eng_name from category_list where id in (select category_id from kirtan_list)
但我无法得到任何结果或任何错误,根据上述条件,表格中提供了数据。
该表可以通过以下方式创建:
CREATE TABLE "kirtan_list" ( `id` INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, `category_id` TEXT, `title_guj` TEXT, `title_eng` TEXT, `description_guj` TEXT, `description_eng` TEXT, `kirtan_group` INTEGER, `pad_no` INTEGER, `kirtan_audio` TEXT );
INSERT INTO `kirtan_list` VALUES (1,'1,2','kjdsfh','Test','kdsgf','Test',1,1,'1.mp3');
INSERT INTO `kirtan_list` VALUES (2,'3','skdjgf','askjdh','kasjdh','kasjdh',1,2,'2.mp3');
COMMIT;
CREATE TABLE `category_list` ( `id` INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, `cat_guj_name` TEXT, `cat_eng_name` TEXT );
INSERT INTO `category_list` VALUES (1,'All Kirtan','All Kirtan');
INSERT INTO `category_list` VALUES (2,'stuti','Stuti');
重现问题。