在 Oracle SQL Devleoper 中,当我复制结果时,如何也复制列标题?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7998706/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
In Oracle SQL Devleoper, when I copy the results, how can I copy the column headings too?
提问by Xonatron
In Oracle SQL Devleoper, when I copy the results, how can I copy the column headings too?
在 Oracle SQL Devleoper 中,当我复制结果时,如何也复制列标题?
For example, I don't want:
例如,我不想:
doucette matthew xona.com etc.
I want:
我想要:
lastname firstname url etc.
-------- --------- -------- ----
doucette matthew xona.com etc.
回答by Marius Botha
I found the answer on https://forums.oracle.com/forums/thread.jspa?threadID=2162606. Once you have selected the results (Ctrl +A) then use Ctrl + Shift + C to copy, this will copy the headers aswell.
我在https://forums.oracle.com/forums/thread.jspa?threadID=2162606上找到了答案。选择结果后 (Ctrl + A) 然后使用 Ctrl + Shift + C 进行复制,这也将复制标题。
Regards
问候
回答by Ian Carpenter
In SQL Developer 3.0.04, once you have run your query, right click on the results grid and select export....
在 SQL Developer 3.0.04 中,运行查询后,右键单击结果网格并选择导出...。
Complete the dialogue box as follows.....
完成对话框如下.....
Select next, then finish and then paste into the destination program
选择下一步,然后完成,然后粘贴到目标程序中
回答by DCookie
If you execute your query using "Run Script" (F5) then your output gets shown in the query results window with column headers that you can copy. That is, if I'm understanding what you want correctly.
如果您使用“运行脚本”(F5) 执行查询,那么您的输出将显示在查询结果窗口中,并带有您可以复制的列标题。也就是说,如果我正确理解你想要什么。