in reply to EOF required before writing DB?
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. ;-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: EOF required before writing DB?
by sdyates (Scribe) on Mar 06, 2002 at 18:22 UTC | |
by VSarkiss (Monsignor) on Mar 06, 2002 at 18:34 UTC | |
by talexb (Chancellor) on Mar 06, 2002 at 18:31 UTC |