Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: database not in correct order

by dws (Chancellor)
on Nov 27, 2007 at 05:42 UTC ( #653156=note: print w/ replies, xml ) Need Help??


in reply to Re^2: database not in correct order
in thread database not in correct order

The sort is done by the primary key ID.

Assuming that you created the table with

... id int auto_increment, primary key (id), ...

and you don't specify an ORDER BY clause for something other than id, you should get the records back in the order you put them in.

Is it possible you forgot the auto_increment?


Comment on Re^3: database not in correct order
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://653156]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2014-09-01 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls