Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 리눅스
- properties
- html
- 정규식
- NetBeans
- tomcat
- Android
- larravel
- DB
- 이클립스
- php
- JSON
- ajax
- CentOS
- File
- java
- SeLinux
- error
- junit
- 톰캣
- Linux
- javascript
- Spring
- 와일드카드
- curl
- jquery
- MySQL
- input
- 안드로이드
- laravel
Archives
- Today
- Total
합쭈기 programming
sqlite 기본 본문
//init databases
private SQLiteDatabase mDb = null;
public BaseDAO(Context context) {
super(context);
mDb = this.getWritableDatabase();
}
//dml sample
public ArrayList selContactSearch(Bundle item)
{
Cursor cursor = null;
cursor = mDb.rawQuery("select * from dual", null);
ArrayList arList= getBundleList(cursor);
return arList;
}
public void insContact(Bundle item)
{
mDb.execSQL("insert into t_contact (contact_name, contact_tel) " +
"values (?,?)", new Object[]{item.getString("name"),item.getString("tel")});
}
'Java > Android' 카테고리의 다른 글
| webview input file tag 동작 문제 (0) | 2015.06.02 |
|---|---|
| 스크롤 안에 리스트 (0) | 2015.04.13 |
| SharedPreferences (0) | 2015.04.13 |
| http connect - json (0) | 2015.04.13 |
| http connect - 파일 업로드 (0) | 2015.04.13 |