If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > A Newbie-question about INSERT

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-06-04, 14:35
digital_storm digital_storm is offline
Registered User
 
Join Date: Dec 2003
Posts: 28
A Newbie-question about INSERT

Hello!

Im using JSP, MySql and Mysql Control Center.
I'm a newbie of databases and got (I think) two simple questions.
I want to sort my table by "rank". In MySql Controll Center there is an option "Order By" , under Alter Table Option, which I have set to "rank".
My questions are:

1) Everytime I edit my table I have to set "Order By" to rank because "Order By" is set to "Default", why does this occur?

2) When I do an INSERT (a new row) it wont come last in my table even if "rank" is bigger. Should I write something special in my syntax if I want to order my table by "rank" when I do an INSERT, why is there an option "Order By" if it doesn't work? Or is that for something else?

Thanks for helping me!

Last edited by digital_storm; 01-06-04 at 14:38.
Reply With Quote
  #2 (permalink)  
Old 01-08-04, 13:23
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
You might want to check in the MySQL Forum...


http://www.dbforums.com/f5/
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #3 (permalink)  
Old 01-08-04, 17:56
roga roga is offline
Registered User
 
Join Date: Jan 2004
Location: Germany
Posts: 17
Quote:
Originally posted by Brett Kaiser
You might want to check in the MySQL Forum...


http://www.dbforums.com/f5/
This is already the MySQL-forum, isn't it?
Reply With Quote
  #4 (permalink)  
Old 01-09-04, 02:49
digital_storm digital_storm is offline
Registered User
 
Join Date: Dec 2003
Posts: 28
I also thougt that ?!?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On