I have a SQLite table in my android app which has a "MODIFIED" column. It basically stores when (date and time) the current row was first inserted or updated.
If i use update()
function of SQLite DB in android, I can't figure out how to put a datetime value in the ContentValues
parameter.
If I use execSql()
method, i can use the DATETIME()
sql function to get the current time is set it to the "MODIFIED" column. But this function does not have a return value. I wouldn't know if the update was successful or not.
Anyone who has any suggestions?