-1
如何通过光标在文本框中显示检索到的数据通过游标检索数据。它提供了一个错误 “光标移出的束缚......”如何显示在文本框
Cursor c=mydb.rawquery("select * from customer where phone='"+editphone.getText().tostring+" ",null);
editname.settext(c.getString(0));
android
如何通过光标在文本框中显示检索到的数据通过游标检索数据。它提供了一个错误 “光标移出的束缚......”如何显示在文本框
Cursor c=mydb.rawquery("select * from customer where phone='"+editphone.getText().tostring+" ",null);
editname.settext(c.getString(0));
只要使用,c.moveToFirst()
前c.getString(0);
Cursor c=mydb.rawquery("select * from customer where phone='"+editphone.getText().tostring+" ",null);
if (c.moveToFirst()){
editname.settext(c.getString(0));
}
非常感谢你......它工作 – 2013-04-10 11:09:42