次のように作成されたテーブルがあるとします。
create table notes (_id integer primary key autoincrement, created_date date)レコードを挿入するには、私は使用します
ContentValues initialValues = new ContentValues(); 
initialValues.put("date_created", "");
long rowId = mDb.insert(DATABASE_TABLE, null, initialValues);
しかし、date_created列を今に設定するにはどうすればよいですか?それを明確にするために、
initialValues.put("date_created", "datetime('now')");正しい解決策ではありません。列を「datetime( 'now')」テキストに設定するだけです。