Code example for SQLiteDatabase

Methods: compileStatementexecSQL

0
        } 
    } 
 
    @MediumTest 
    public void testStatementMultiThreaded() throws Exception { 
        mDatabase.execSQL("CREATE TABLE test (num INTEGER, str TEXT);");
        SQLiteStatement statement =
                mDatabase.compileStatement("INSERT INTO test (num, str) VALUES (?, ?)");
 
        StatementTestThread thread = new StatementTestThread(mDatabase, statement);
        thread.start();
        try { 
            thread.join();
        } finally { 
            statement.close();
        } 
    } 
 
    @MediumTest 
    public void testStatementConstraint() throws Exception { 
        mDatabase.execSQL("CREATE TABLE test (num INTEGER NOT NULL);");