postgresql 执行脚本的 pgAdmin 快捷方式

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13636532/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 00:35:54  来源:igfitidea点击:

pgAdmin shortcuts to execute scripts

postgresqlpgadmin

提问by Igorock

Who knows pgAdmin shortcuts to execute scripts in pgAdmin Query tool? Namely to execute whole query and execute current script.

谁知道在 pgAdmin 查询工具中执行脚本的 pgAdmin 快捷方式?即执行整个查询并执行当前脚本。

回答by Erwin Brandstetter

Select the relevant portion and hit the F5key in the SQL editor of pgAdmin.
OR use the "Execute query" button (green arrow) in the toolbar.
If nothing is selected, the whole script is executed.

选择相关部分并F5在 pgAdmin 的 SQL 编辑器中点击键。
或者使用工具栏中的“执行查询”按钮(绿色箭头)。
如果未选择任何内容,则执行整个脚本。

回答by Axis

shortcuts to execute scripts

执行脚本的快捷方式

F5for windows user and

F5对于 Windows 用户和

control+ Efor mac user

control+ Emac 用户

回答by jeffhale

F5works on Mac and Windows.

F5适用于 Mac 和 Windows。

Highlighting just part of the script executes just that part of the script.

仅突出显示脚本的一部分只会执行脚本的那部分。

List of all keyboard shortcut Query Tools for pgAdmin 4 is in the docs

pgAdmin 4 的所有键盘快捷键查询工具的列表在文档中

control+ edidn't work on my Mac.

control+e在我的 Mac 上不起作用。

回答by user13598814

on mac use the fn key (bottom left) + F5

在 mac 上使用 fn 键(左下角)+ F5