Webmaster Forum > Web Administration > Databases - MySQL, SQL, Oracle, Access and others >

way to inserting data into a MYSQL table data in an ordered way


Reply
 
Share Thread Thread Tools
Old 01-06-2009, 09:15 AM   #1
komrad

Junior Member
 
Join Date: Aug 2008
Posts: 3
Reputation: komrad is on a distinguished road
iTrader: (0)
Default way to inserting data into a MYSQL table data in an ordered way

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.
komrad is offline   Reply With Quote
Old 01-06-2009, 01:25 PM   #2
jitendraag

Experienced Member
 
Join Date: Jan 2009
Posts: 29
Reputation: jitendraag is on a distinguished road
iTrader: (0)
Default Re: way to inserting data into a MYSQL table data in an ordered way

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.
jitendraag is offline   Reply With Quote
Old 04-16-2009, 09:19 AM   #3
MH Vishal

Junior Member
 
Join Date: Apr 2009
Location: Ahmedabad
Age: 25
Posts: 5
Reputation: MH Vishal is on a distinguished road
iTrader: (0)
Default Re: way to inserting data into a MYSQL table data in an ordered way

You simple need to do write some codes to verify that the primary key to be inserted doesn't already exist in the tables.
MH Vishal is offline   Reply With Quote
Old 05-13-2009, 09:18 AM   #4
iapp

Junior Member
 
Join Date: May 2009
Location: guangd
Posts: 6
Reputation: iapp is on a distinguished road
iTrader: (0)
Default Re: way to inserting data into a MYSQL table data in an ordered way

I don't know what do you mean.
iapp is offline   Reply With Quote
Old 05-17-2009, 08:38 AM   #5
imboring1

Junior Member
 
Join Date: May 2009
Location: Miagao Iloilo
Age: 19
Posts: 18
Reputation: imboring1 is on a distinguished road
iTrader: (0)
Default Re: way to inserting data into a MYSQL table data in an ordered way

there a options in xammp lol
imboring1 is offline   Reply With Quote
Old 05-28-2009, 05:43 AM   #6
extremeseos

Junior Member
 
Join Date: May 2009
Location: USA
Age: 26
Posts: 1
Reputation: extremeseos is on a distinguished road
iTrader: (0)
Default Re: way to inserting data into a MYSQL table data in an ordered way

Basically SQL is quite useful in big establishments......with all its features properly used....
extremeseos is offline   Reply With Quote
Old 06-09-2009, 08:52 PM   #7
HivelocityDD

 
Join Date: Jun 2009
Location: local
Age: 28
Posts: 299
Reputation: HivelocityDD will become famous soon enoughHivelocityDD will become famous soon enough
iTrader: (0)
Default Re: way to inserting data into a MYSQL table data in an ordered way

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.
HivelocityDD is offline   Reply With Quote
Old 10-09-2009, 02:22 PM   #8
careertargetph

Junior Member
 
Join Date: Oct 2009
Location: Manila
Posts: 10
Reputation: careertargetph is on a distinguished road
iTrader: (0)
Default Re: way to inserting data into a MYSQL table data in an ordered way

You can use a SQL query to transfer this data in your prefered way. You can read for documentation regarding this matter.
careertargetph is offline   Reply With Quote
Reply

Tags
data, inserting, mysql, mysql table data, ordered, table


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

Show/Hide Menu
Webmaster Help

You are currently viewing our webmaster forum as a guest, with limited access to our forums and webmaster resources.

As a registered member of our webmaster forums you gain useful webmaster help and the ability to participate in friendly informative webmaster discussion with webmasters across the web.

If you have any problems with registration or your account login, please contact support.
Log in

Set Cookie?


Sites We Like

Ads

Copyright © 2004 - 2010 Webmaster Help. All Rights Reserved.
Exdevio Webmaster Network