devinemke, I like your idea alot, in fact it was my initial one, but what if I want to add an item before fruit, how would I do that?
Sxooter, that was one of my recent ideas, but that involves writing a function that extracts the data from the table, organizes it and inserts the new item where neccessary, then update whatever rows as needed. That is just too much overhead for something so simple.
The method I devised is similar, but much less overhead. it simply checks to see if the position is taken, if so, then it performs an update that makes room for the new item, then the item is inserted.
It's sort of a mix of both previous methods.
Both your ponits are fairly unreasonbel, because the point of a database is NOT only to store information, but to ORGANIZE that very data as well. The SELECT statement is merely a way of presenting that data in various ways, so as not to be static, and preventing users from having to create multiple tables with the same data but in different arragements.
Appearently the creators of MySQL and other databases have forgotten the fact that databases are not just for storing information, but also to help organize it as well.
Anyone can create a program that dumps a bunch of data in a text file with a 3 letter extension; and seeing as the programmers do not intend MySQL to help organize the data in an optimal way, I should think of making my own database program, even if only for personal use.
You guys don't see a need for this now, but if you get into constructing databases for different users, something like this just seems common sense.
I bet if they were to implement this in MySQL, you would get a rush of people in here with ideas and comments on how they would use it.