我有以下代码:
ArrayList NumList = getIntent().getParcelableArrayListExtra ("name");
ArrayList<String> results = new ArrayList<String>();
SQLiteDatabase sampleDB = null;
try {
sampleDB = this.openOrCreateDatabase(SAMPLE_DB_NAME, MODE_PRIVATE, null);
sampleDB.execSQL("CREATE TABLE IF NOT EXISTS " +
SAMPLE_TABLE_NAME +
" (FirstName VARCHAR);");
sampleDB.execSQL("INSERT INTO " +
SAMPLE_TABLE_NAME +
" Values (NumList);");
我想要做的是将 NumList 传递到表中。上面的代码显示一个错误,说“没有这样的列:NumList)”我将如何传递这些信息?