It's actually not critical that the rows I retrieve are in order, but it would be *nice*.
I'm trying to display a list of all 'widgets' available and would like to display them in reverse order of their addition to the site. If I can count on them being returned pretty much in the correct order with the odd out-of-place entry then I'd be happy with that. Do you think that's a safe assumption?
1) If you want to order by last insert it has to be auto_increment.
2) If you want to order by last insert OR update .. it has to be through a timestamp field.
either way there will be no extra coding required except that ORDER BY clause in your sql query.
HTH
Jaski
groovy: The change will not have any destructive effect on already existing data. See www.juicystudio.com/tutorial/mysql/alter.html for table manipulation details.
[edited by: jatar_k at 6:55 pm (utc) on June 10, 2003]
[edited by: waldemar at 7:46 pm (utc) on June 10, 2003]
Scott
I went for just adding a TIMESTAMP field to the table. As updates are very infrequent, and it isn't absolutely crucial that they are in exact order, that seemed like the best solution and involved minimal extra coding.
Thanks for all your help.