|
|
#1 |
|
Junior Member
|
Hello all,
I'd like to know if there is a way to insert into a MYSQL table data in an ordered way? Right now as a workaround I've literally made a table of questions with questionID as primary key, nextQuestion and prevQuestion pointing to other questionIDs. Basically I've made a two way linked list from scratch. Is there anything built into MYSQL that implements this? Thanks in advance. |
|
|
|
|
|
#2 |
|
Experienced Member
|
Are you trying to insert? What is the purpose of 'order' when you are inserting? Wouldn't this be required when you are retrieving the rows.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. || To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. |
|
|
|
|
|
#3 |
|
Junior Member
|
You simple need to do write some codes to verify that the primary key to be inserted doesn't already exist in the tables.
|
|
|
|
|
|
#7 |
![]() |
There is no significance in inserting the data to mysql in an orderly manner. But you can use autoincrement to insert the data with out duplicates in the id putting a primary key to it.
And while selecting the data you can call the "order by field name " to sort it in the corresponding order.
__________________
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. - 1-888-869-HOST(4678) Award winning Managed Hosting - To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts. Managed Dedicated Servers. Reseller Discounts. 24/7 Impressive Tech Support. |
|
|
|
![]() |
| Tags |
| data, inserting, mysql, mysql table data, ordered, table |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| USB enclosure MySQL data dump and file access | bbrian017 | Coding Forum | 1 | 02-06-2010 02:55 PM |
| [WTS] 32 Original MySQL Niche Content Databases On Sale (Industrial Data & Facts) | immediate | Content | 0 | 12-23-2009 01:38 AM |
| mySQL Data type | nsood3 | Databases - MySQL, SQL, Oracle, Access and others | 4 | 11-10-2009 09:55 AM |
| How can I copy data from a html table? | bomba | Website Development | 0 | 02-08-2008 09:53 AM |








