Quantcast
Channel: iT邦幫忙
Viewing all articles
Browse latest Browse all 15645

Android SQLite查詢

$
0
0
private static final String DB_NAME="coll.db";
private static final String TBL_NAME="CollTbl";

//創建表SQL語句
private static final String CREATE_TBL="create table CollTbl(_id integer primary key autoincrement,name text ,address text)";

String Qname = ((TextView) view.findViewById(R.id.store_name)).getText().toString();
我要查詢我的SQLite裡面的name欄位裡有沒有Qname這筆資料的query語法要怎麼寫
請幫幫我!!

Viewing all articles
Browse latest Browse all 15645

Trending Articles