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 > DB2 > SQL INSERT and Resultset Order

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-03, 00:08
petmor petmor is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
SQL INSERT and Resultset Order

I've been accessing an OS390 server through DB2 Connect for some time now with expected behavior. The INSERTed data would be the added as the last row in the table. Now, INSERTed rows are placed after the first rowset present in the table. I had made changes through the DB2 Configuration Assistant for ODBC/CLI, and this behavior occurred afterwards. After apparently restoring default settings, this 'out-of-order' behavior continues. An ideas on why and how to fix? Thanks in advance.
Reply With Quote
  #2 (permalink)  
Old 10-03-03, 00:14
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
How do you know what is the physical order for the rows in the table? A relational database is not guaranteed to return data via a SELECT statement in any consistent order unless you use the ORDER BY clause.
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