String selectQuery = "select * from " + TABLE+"where"+cur_date+"BETWEEN start_date AND end_date";
sqlDatabase = this.getWritableDatabase();
错误::::::::::::: E / SQLiteLog:(1)靠近“AND”:语法错误
[ 02-17 10:59:17.504 24925:24925 W/ ]
[ColorAdjust] gammamode=2, cemode=11
[ 02-17 10:59:17.504 24925:24925 W/ ]
[ColorAdjust] temp_gammavalue=2, temp_cevalue=11
[ 02-17 10:59:17.504 24925:24925 W/ ]
[ColorAdjust] Don't setGamma!
[ 02-17 10:59:17.504 24925:24925 W/ ]
[ColorAdjust] Don't setCe!
[ 02-17 10:59:17.514 24925:24925 W/ ]
[ColorAdjust] Set temp_prefer temp_ce!
我怎么能解决它。请任何人帮助我...
答案 0 :(得分:1)
在单词之间添加适当的空格并检查正确的查询:
试试这个:
"select * from "+TABLE+" where "+cur_date+" BETWEEN '"+start_date+"' AND '"+end_date+"' ";
答案 1 :(得分:0)
用
更新上述代码String selectQuery = "select * from " + TABLE + " where " + cur_date +" BETWEEN start_date AND end_date";
sqlDatabase = this.getWritableDatabase();