It looks like you're just doing select id, name from table. In this case, there is no guaranteed row order for your result set. If you want to impose an order, use an order by clause: $dbh->do('select id, name from table order by id') I wrapped a DBI call around just to make it Perl; otherwise, this is really a SQL question. ;-)
In reply to Re: EOF required before writing DB?
by VSarkiss
in thread EOF required before writing DB?
by sdyates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |