Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/208.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android中的SqliteDatabase_Android - Fatal编程技术网

Android中的SqliteDatabase

Android中的SqliteDatabase,android,Android,如何写作 select * from customerdetails where locality = " something" 以 "Select * from customerdetails where locality =?" + locality + ";"; 在这种情况下,拉丁语是可变的 任何人都可以解决我的问题 提前谢谢 Cursor c = db.query("customerdetails", null, "locality =?", new String[]{localit

如何写作

select * from customerdetails where locality = " something"

"Select * from customerdetails where locality =?" + locality + ";";
在这种情况下,拉丁语是可变的 任何人都可以解决我的问题 提前谢谢

Cursor c = db.query("customerdetails", null, "locality =?", new String[]{locality}, null, null, null);
或者可以使用原始查询,如

db.rawQuery("Select * from customerdetails where locality = ? ", new String[]{locality});