IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to copy n rows n paste them in same table.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
srikanthrao

New User


Joined: 24 Jul 2007
Posts: 8
Location: Chennai

PostPosted: Wed Aug 08, 2007 12:42 pm
Reply with quote

hi,

i need a sql query which copies n rows in my table and appends them down the table.

can any one help me in this regard.

Srikanth.
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Wed Aug 08, 2007 1:38 pm
Reply with quote

Hi,

Can you please explain your requirement so that not only you but others too will be benefitted through that.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 08, 2007 6:22 pm
Reply with quote

Hello,

As has been suggested, you need to clarify what you are asking - your question is completely clear to you, but not others. This
Quote:
appends them down the table
is not terminology that is associated with any database system i've supported.

If you show some existing sample rows and what you want the result to be, that will help.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Thu Aug 09, 2007 7:44 am
Reply with quote

Might this work?

Code:

SELECT *
INTO SOURCETABLE
FROM SOURCETABLE
WHERE somecolumn = 'somedata'
FETCH FIRST 500 ROWS ONLY;
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Pulling a fixed number of records fro... DB2 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top