Print Thread
Copy to Excel Minus rownum
#46504 03/14/13 11:09 AM
Joined: Apr 2007
Posts: 12
Glasgow
S
Member
OP Offline
Member
S
Joined: Apr 2007
Posts: 12
Glasgow
I've had a look in the forum for a solution but don't see it.

Is it possible to Copy to Excel without the rownum i.e. first column? Similar to when you Export Query Results to a CSV?

Thanks.

Re: Copy to Excel Minus rownum
StevenRowe #46508 03/14/13 11:43 AM
Joined: Apr 2007
Posts: 96
Germany
B
Member
Offline
Member
B
Joined: Apr 2007
Posts: 96
Germany
Make sure that you don't mark the column where the rownums are inside. This is not really included in the resultset, but in the grid. And the grid is, waht is be exported.

Last edited by Benjamin L; 03/14/13 11:43 AM.
Re: Copy to Excel Minus rownum
Benjamin L #46509 03/14/13 11:47 AM
Joined: Apr 2007
Posts: 12
Glasgow
S
Member
OP Offline
Member
S
Joined: Apr 2007
Posts: 12
Glasgow
Thanks Benjamin

I guess that's a workaround but I don't see why that column would be included in an export to Excel when Excel already has row number.

Re: Copy to Excel Minus rownum
StevenRowe #46510 03/14/13 11:48 AM
Joined: Sep 2004
Posts: 476
Munich, Germany
Member
Offline
Member
Joined: Sep 2004
Posts: 476
Munich, Germany
Yes, it's quite easy: Just instead of marking the whole result grid by clicking on the top left corner you mark the first column and then with shift+mouse-click the last column of the result grid and then via mouse-right-click -> Export Results -> CSV File
you should get your CSV without the rownum column.


Regards,
Berny
Re: Copy to Excel Minus rownum
StevenRowe #46512 03/14/13 02:58 PM
Joined: Jan 2013
Posts: 8
Member
Offline
Member
Joined: Jan 2013
Posts: 8
good ideas, or you could just delete the first column in excel after having inserted the copy wink

Re: Copy to Excel Minus rownum
hellraiserTG #46513 03/14/13 03:12 PM
Joined: Apr 2007
Posts: 12
Glasgow
S
Member
OP Offline
Member
S
Joined: Apr 2007
Posts: 12
Glasgow
[quote=hellraiserTG]good ideas, or you could just delete the first column in excel after having inserted the copy wink [/quote]

That's what I have always done but I thought there must be an option within PL/SQL Dev to not export the rownum

Re: Copy to Excel Minus rownum
StevenRowe #46520 03/14/13 05:56 PM
Joined: Apr 2003
Posts: 517
Portland, OR, USA
M
Member
Offline
Member
M
Joined: Apr 2003
Posts: 517
Portland, OR, USA
I always delete the first column after copying to Excel also. In my opinion, it would be nicer to not need to do this every time.

Re: Copy to Excel Minus rownum
mike #46529 03/15/13 09:25 AM
Joined: Jan 2013
Posts: 8
Member
Offline
Member
Joined: Jan 2013
Posts: 8
ok, from this point of view wink

but i'm already so used to it... but then i would delete the first datacolumn wink

Re: Copy to Excel Minus rownum
StevenRowe #47651 08/06/13 02:01 PM
Joined: Aug 2013
Posts: 1
New Hampshire
A
Member
Offline
Member
A
Joined: Aug 2013
Posts: 1
New Hampshire
Not sure the version of PL/SQL Dev that you are using (I'm on 10.0.4.1708), but I was also looking for this as I export multiple queries and having to delete the rownum is tedious.

I found that you can remove this under;

Tools > Preferences > Window Types > SQL Window
Uncheck "Include row number with export and copy"
Apply


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.070s Queries: 15 (0.043s) Memory: 2.5341 MB (Peak: 3.0408 MB) Data Comp: Off Server Time: 2024-05-16 04:29:20 UTC
Valid HTML 5 and Valid CSS