RE: How get ROWNUM in DB2

RE: How get ROWNUM in DB2

 

  

Its not possible...

You need to drop the table and recreate in desired schema...

Thanks & Regards
Anand.J.K



"anil" <db2udbdba-ezmlmshield-x54944414.[Email address protected]
30 Mar 2007 14:23 Mail Size: 6940

To
"LazyDBA Discussion" <[Email address protected]
cc

Subject
RE: How get ROWNUM in DB2




Our Ref

Your Ref




thanks

can any body tell me how to change schema of a table in DB2 , means
moving a tables from one schema to others

rgds,
Anil






|---------+--------------------------------------------------------->
| | "Singh Rahul " |
| | <db2udbdba-ezmlmshield-x67198161.[Email Address Removed] | azyDBA.com> |
| | |
| | 03/30/2007 10:51 AM |
| | |
|---------+--------------------------------------------------------->

>-----------------------------------------------------------------------------------------------|
| |
| To: "LazyDBA Discussion" <[Email address protected]
|
| cc: (bcc: anil.gupta/Polaris) |
| Subject: RE: How get ROWNUM in DB2 |

>-----------------------------------------------------------------------------------------------|




Try
row_number() over(order by ...) in the select clause

-----Original Message-----
From: anil [mailto:db2udbdba-ezmlmshield-x75423619.[Email address
protected]
Sent: Friday, March 30, 2007 10:30 AM
To: LazyDBA Discussion
Subject: How get ROWNUM in DB2


HI

can any body tell me how to get ROWNUM equivalent in DB2

Anil


This e-Mail may contain proprietary and confidential information and is
sent for the intended recipient(s) only. If by an addressing or
transmission error this mail has been misdirected to you, you are
requested
to delete this mail immediately. You are also hereby notified that any
use,
any form of reproduction, dissemination, copying, disclosure,
modification,
distribution and/or publication of this e-mail message, contents or its
attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in


---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html




---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html




This e-Mail may contain proprietary and confidential information and is
sent for the intended recipient(s) only. If by an addressing or
transmission error this mail has been misdirected to you, you are
requested to delete this mail immediately. You are also hereby notified
that any use, any form of reproduction, dissemination, copying,
disclosure, modification, distribution and/or publication of this e-mail
message, contents or its attachment other than by its intended recipient/s
is strictly prohibited.

Visit us at http://www.polaris.co.in


---------------------------------------------------------------------
TO REPLY TO EVERBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html


-----------------------------------------
******************************************************************
This message originated from the Internet. Its originator may or
may not be who they claim to be and the information contained in
the message and any attachments may or may not be accurate.
******************************************************************




************************************************************
HSBC Software Development (India) Pvt Ltd
HSBC Center Riverside,West Avenue ,
25 B Kalyani Nagar Pune 411 006 INDIA

Telephone: +91 20 26683000
Fax: +91 20 26681030
************************************************************



-----------------------------------------
*******************************************************************
This e-mail is confidential. It may also be legally privileged.
If you are not the addressee you may not copy, forward, disclose
or use any part of it. If you have received this message in error,
please delete it and all copies from your system and notify the
sender immediately by return e-mail.

Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability
for any errors or omissions.
*******************************************************************
"SAVE PAPER - THINK BEFORE YOU PRINT!"

DB2 & UDB email list listserv db2-l LazyDBA home page