Skip to content

Commit a89273e

Browse files
authored
Update README.md
1 parent b2796f1 commit a89273e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ Make things easy when you need to write a sql statment for Android SQLite.
131131
.add("CITY", "New York")
132132
.add("STATE", "New Jersey");
133133
134+
## Update
135+
136+
ContentValues cv = SqlParser.content().add("NAME", "John")
137+
.add("CITY", "New York")
138+
.add("STATE", "New Jersey").get();
139+
140+
yourDb.update(tableName, cv, rowId + " = ?", new String[]{String.valueOf(yourId)});
141+
134142

135143
# License
136-
See the [LICENSE](/LICENSE.txt). file for license rights and limitations (MIT).
144+
See the [LICENSE](/LICENSE.txt). file for license rights and limitations (MIT).

0 commit comments

Comments
 (0)