MySQL Forums
Forum List  »  Oracle

Re: rownum-Problem
Posted by: András Kardos
Date: April 20, 2005 04:37PM

ONe example where ROWNUM would be really usefull if you do a INSERT INTO ... SELECT FROM ... style statement and you want to generate the primary key for the destination table on the fly. For example you have a contact db with cities for persons. You want to create a lookup table for cities, so you do INSERT INTO cities (id, name) SELECT DISTINCT ????, city FROM person. You see?

Options: ReplyQuote


Subject
Views
Written By
Posted
17334
August 06, 2004 12:28AM
28030
September 26, 2004 09:04AM
11758
October 09, 2004 03:02PM
22330
October 10, 2004 12:56PM
12177
December 22, 2004 07:05AM
13166
December 22, 2004 01:59PM
9366
April 13, 2005 01:25PM
12665
April 14, 2005 12:08AM
6850
April 26, 2005 02:12AM
Re: rownum-Problem
7397
April 20, 2005 04:37PM
9683
April 23, 2005 09:48AM
5399
August 26, 2008 03:47AM
5652
April 26, 2005 02:16AM
5382
October 18, 2005 02:57PM
5304
November 16, 2005 04:58PM
18763
August 08, 2006 07:45AM
5110
December 14, 2008 10:01PM
5252
February 05, 2009 04:49PM
4464
December 27, 2008 03:27AM
4544
December 27, 2008 04:19AM
6303
February 08, 2007 02:20AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.