Note that there are some explanatory texts on larger screens.

plurals
  1. POMaximum number of rows in a sqlite table?
    primarykey
    data
    text
    <p>Is there some limit of rows for a sql lite table ? My app is giving a error " no such table x..." when that table have more than 6000 rows. Below the 6000 rows, dont give any error.</p> <p>Thank you.</p> <p>This is the query.</p> <pre><code> db = (new DatabaseHelper(this)).getWritableDatabase(); cursor = db.rawQuery("SELECT continentes._id, continentes.ContinenteID, continentes.Continente" + " FROM continentes" + " WHERE continentes.Continente LIKE ?" + " GROUP BY continentes.ContinenteID, continentes.Continente ORDER BY continentes.Continente", new String[]{"%" + searchText.getText().toString() + "%"}); </code></pre> <p>This is where i create the table</p> <pre><code>@Override public void onCreate(SQLiteDatabase db) { String s; try { Toast.makeText(context, "Creating Database", 2000).show(); InputStream in = context.getResources().openRawResource(R.raw.continentes); DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse(in, null); NodeList statements = doc.getElementsByTagName("statement"); for (int i=0; i&lt;statements.getLength(); i++) { s = statements.item(i).getChildNodes().item(0).getNodeValue(); db.execSQL(s); } } catch (Throwable t) { Toast.makeText(context, t.toString(), 50000).show(); </code></pre> <p>SOLVED !!! I just find out why i got this problem. Because the files that i use with Data to create and populate the sql database, can´t have more than 1.2mb. So, i split them, and dont have more problems. Thanks to all. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload