我想
代码:
String sql = "INSERT OR REPLACE INTO "+TABLE_USER+" (...)" +
" VALUES ('"..."'" +
") WHERE " + timestamp +
" > (select " + COLUMN_TIMESTAMP +
" from " + TABLE_USER + " where " + COL_NUMBER + " = '" nr + "')"
答案 0 :(得分:1)
插入或替换不允许使用where子句。我想你必须分两步完成。
答案 1 :(得分:0)
仅当 updated_at 字段较新时才更新的示例。
$1_S$