próbowałem stworzyć tabelę tymczasową (sqlite) w AndroidzieNie można utworzyć tabeli temp w Android SQLite
Oto fragment kodu:
// No error - But cannot create TEMP table
database.rawQuery("CREATE TEMP TABLE IF NOT EXISTS tt1 (unread_message int, target varchar)", null);
// Error - android.database.sqlite.SQLiteException: no such table: tt1: , while compiling: INSERT INTO tt1 SELECT count(*), target FROM messages where read_status=0 and direction=1 GROUP BY target
database.rawQuery("INSERT INTO tt1 SELECT count(*), target FROM messages where read_status=0 and direction=1 GROUP BY target", null);
nie ma błędu dla stworzenia TEMP zapytania TABELA , ale narzeka, że tt1 nie istnieje w drugim zapytaniu. Czy tworzę tabelę TEMP w niewłaściwy sposób?
Ale oba pytania pracować w SQLite Manager (Firefox plug-in). Przeszukałem "zakres SQL" i nadal nie jestem gotowy, aby zrozumieć, co to jest "zasięg problemu". Czy możesz mi powiedzieć coś więcej na temat "problemu z zasięgiem"? dzięki –
czy to nie powinno być policzone (cel)? – njzk2