我正在使用appcelerator并使用appcelorator studio,但我对在appcelerator中的查询字符串中使用类似运算符感到困惑
values = Alloy.Globals.database_file.execute('select ChapterID,ChapterCode,ChapterName,ChapterOwner,ChapterOrder,ChapterDescription,ChapterNote,ParentChapterID from CbahiHSChapters like "%' searchText '%"');
引号放置不正确。
一切看起来都很好,但您缺少这样的+
符号和的条件
values = Alloy.Globals.database_file.execute('select ChapterID,ChapterCode,ChapterName,ChapterOwner,ChapterOrder,ChapterDescription,ChapterNote,ParentChapterID from CbahiHSChapters where like "%' + searchText + '%"');