कहो, हमारे पास एक तालिका बनाई गई है:
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')");
क्या सही समाधान नहीं है। यह कॉलम को "डेटाइम ('अब') टेक्स्ट पर सेट करता है।