MySQL 你如何在 Sequel Pro 中执行查询?

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

How do you execute a query in Sequel Pro?

mysqlsequelpro

提问by Nu?ito de la Calzada

I want to execute a query in a MySQL DB using Sequel Pro, but I do not see a Runbutton.

我想使用 Sequel Pro 在 MySQL 数据库中执行查询,但我没有看到Run按钮。

How do I execute my query?

如何执行我的查询?

enter image description here

在此处输入图片说明

回答by Bernd Buffen

Use ?+Rto execute the selected Query.

使用?+R执行选定的查询。

Alternatively, use the dropdown that appears at the bottom right of the query editor and select Run Currentor Run Previousdepending on where your text cursor is.

或者,使用出现在查询编辑器右下角的下拉菜单,然后根据文本光标所在的位置选择Run CurrentRun Previous

回答by Lukasz Szozda

Based on Keyboard Shortcuts:

基于键盘快捷键

Run all queries??R

运行所有查询??R

Run current query or selection?or ?R

运行当前查询或选择??R

回答by David

Use the drop down button on the right side, underneath the textarea.

使用右侧文本区域下方的下拉按钮。

Should have the following options:

应该有以下选项:

  • Run Current Query
  • Run All Queries
  • 运行当前查询
  • 运行所有查询

回答by Tyler Christian

Came here to find ? + return to execute a query (like MySQL Workbench).

来这里找?+ return 执行查询(如 MySQL Workbench)。

Found that I can map using mac Key bindings with the names of Run Current Queryand Run Previous Query.

发现我可以使用名称为Run Current Query和 的mac Key 绑定进行映射Run Previous Query

If you want to do it via terminal it would be (untested):

如果您想通过终端执行此操作,它将是(未经测试):

 defaults write com.sequelpro.SequelPro NSUserKeyEquivalents '{
        "Run Current Query" = "@\U21a9";
        "Run Previous Query" = "@\U21a9";
    }'

Note: you may have to restart the app.

注意:您可能需要重新启动应用程序。