Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Databases > Re: Getting tab...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 10 Topic 3695 of 3800
Post > Topic >>

Re: Getting tables in insertion order

by Sabine Dinis Blochberger <no.spam@[EMAIL PROTECTED] > Apr 1, 2008 at 12:54 PM

Lew wrote:

> Sankar wrote:
> >   I am working on a small utility to do database migration from one db
> > to another.. Here i [sic] need to get list of tables in insertion
order.. I
> > got list of tables by DatabaseMetaData.getTables()..  but it is giving
> > tables in alphebetical order..
> 
> If this is a relational database system, then row order within the table
is 
> inherently meaningless.
> 
> If this DMBS is like most, the records are very likely not stored in the
order 
> in which they were inserted.  Many database systems s****t a row id,
often 
> named "OID" or something similar, that represents row order within a
table, 
> but there is no hard guarantee that row id order matches insertion
order, even 
> in systems where that's mostly true.
> 
> Unless tables are designed explicitly to record insertion time or
sequence, 
> this is not a generally solvable problem.  Then again, row order is
supposed 
> to be meaningless.
> 

Especially the order of creation of tables (looks like that's what he's
asking)! Be glad you needn't worry aobut the trivial thing of insertion
or creation order. If you must know, add a timestamp field to your table
and fill it out accordingly.

-- 
Sabine Dinis Blochberger

Op3racional
www.op3racional.eu
 




 10 Posts in Topic:
Getting tables in insertion order
Sankar <pr.sankar@[EMA  2008-04-01 00:45:28 
Re: Getting tables in insertion order
Lew <lew@[EMAIL PROTEC  2008-04-01 07:33:38 
Re: Getting tables in insertion order
Sabine Dinis Blochberger   2008-04-01 12:54:21 
Re: Getting tables in insertion order
Dyreatnews@[EMAIL PROTECT  2008-04-01 14:16:04 
Re: Getting tables in insertion order
Roedy Green <see_websi  2008-04-01 13:44:50 
Re: Getting tables in insertion order
Roedy Green <see_websi  2008-04-01 21:08:26 
Re: Getting tables in insertion order
Sankar <pr.sankar@[EMA  2008-04-02 04:25:01 
Re: Getting tables in insertion order
Silvio Bierman <sbierm  2008-04-02 13:45:34 
Re: Getting tables in insertion order
Roedy Green <see_websi  2008-04-03 08:45:20 
Re: Getting tables in insertion order
blueparty <partner5044  2008-04-04 07:39:04 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 23:19:49 CDT 2008.