我的代码是
mDB.query(DATABASE_TABLE, new String[] {KEY_ID, KEY_Name + KEY_Familyname + " as " + KEY_Fullname}, null, null, null, null, null);
所以这不是
Error: "KEY_Name + KEY_Familyname + " as " + KEY_Fullname" ????
答案 0 :(得分:1)
使用||
运算符连接字符串
select KEY_Name || KEY_Familyname as KEY_Fullname