23.04.2015, 20:10
Hello,
If have like more than 1000 rows in a SQLite db and I'd like to load it in a_sampdb to be added to an array.
So if I did this "SELECT * from `DB`", Will only the first X be loaded or it will be completely loaded ?
And if I did this, Will it be better or selecting all will be better:
Thanks in advanced and will REP.
If have like more than 1000 rows in a SQLite db and I'd like to load it in a_sampdb to be added to an array.
So if I did this "SELECT * from `DB`", Will only the first X be loaded or it will be completely loaded ?
And if I did this, Will it be better or selecting all will be better:
PHP код:
for(new i; i < 1000; i++)
{
new DBResult:result = db_queryex(dbHandle, "SELECT * FROM `DB` where `id` = %d", i);
//Proccess the line.
}