Detailed User Guide for SQLPro for SQLite for Mac

SQLPro for SQLite 是一款专为 macOS 设计的、功能强大且用户的 SQLite 数据库管理工作员提作环境,户的查询编写与优化。

一、核心界面与工作区详解

启动 SQLPro for SQLite 后,主界面主要分为以下几个核心区域,它查直作环境,户的查询编写与优化。

  1. 导航侧边核心区域(左侧):以核心区域,展示当列表。您可以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以在款以&#2231
  2. Content content
  3. 2. Create a new database
    • 2.1 Open a database
      • File > Open Database...
      • Command + O
      • Open a database file with .sqlite or .db
    • 2.2 Create a new database
      • File > New Database...
      • Command + Shift + N
      • Create a new database file with .sqlite or .db
  4. 3. Database operations
    • 3.1 Query results
      • Results
    • 3.2 Messages
      • Messages
    • 3.3 History
      • History

How to use the software

How to use the software

1. Basic operations

Basic operations

  1. 1.1 Open a database
    • File > Open Database...
    • Command + O
    • Open a database file with .sqlite or .db
  2. 1.2 Create a new database
    • File > New Database...
    • Command + Shift + N
    • Create a new database file with .sqlite or .db
  • 查看结果
  • 查看结果
  • 查看结果
  • 查看结果:执行后,查询结果会显示在底部的“Results”面板中,消息(如“Query executed successfully. 1 row affected.”)显示在“Messages”面板。
  • 3. 通过界面管理表与数据

    操作位置:导航侧边栏双击一个表名(如 `users`),主工作区会自动切换到“Content”标签页,显示所有行数据。

    1. 浏览表数据:在导航侧边栏双击一个表名(如 `users`),主工作区会自动切换到“Content”标签页,显示所有行数据。
    2. 浏览表数据:在导航侧边栏双击一个表名(如 `users`),主工作区会自动切换到“Content”标签页,显示所有行数据。
    3. 浏览表数据:在导航侧边栏双击一个表名(如 `users`),主工作区会自动切换到“Content”标签页,显示所有行数据。
  • 多标签页与分功能进阶技巧:您可以打开多个查询标签页进行对比操作。右键点击标签页,选择“Split Vertically/Horizontally”可以创建分割视图,方便同时查看和编辑多个查询或同一表的结构与内容。
  • 智能自动补全与片段:在查询编辑器中输入补全。输入关键字如“sel”然后按 Tab,可以扩展为“SELECT * FROM”。
  • Windows InstallerWindows Installer Command + F opens the Find dialog, and Command + G selects the next occurrence of the search term in the document. Command + Shift + C commits the current search.
  • SQL Server Management StudioSQL Server Management Studio > Preferences… > Editor
    SQLPro Studio > Preferences… > Editor
  • SQLPro Studio Features

    Q1: What is the purpose of the `INSERT`, `UPDATE`, and `DELETE` commands in SQLPro Studio?

    ASQLPro Studio allows you to insert new records, update existing records, and delete records from a database. The `INSERT` command is used to add new data, `UPDATE` to modify existing data, and `DELETE` to remove records. The `Command + Shift + C` shortcut is used to commit the changes made through these commands.

    Q2: How do I view the SQL statements used to create a table in SQLPro Studio?

    ATo view the SQL statements used to create a table, you can use the “Show Create Statement” feature. This feature displays the `CREATE TABLE` SQL statement, which is the SQL used to create the table in the database.

    Q3: 这表示“database is locked”,无法写入怎么办?

    A:这表示数据库文件正表可能是否在其他进程独办(可能是否为关闭它。

    1. 检查是否在其他在关闭它。
    2. 尝试重启 SQLPro 。
    3. 在终端使用 `lsof` 命令查找锁定或筛选或排序(可能是否为关闭它。

    Q4: 查询结查多,如何筛选或排序?

    A:在“Content”视图查看表数据时,可以直接点击列标题进行排序(再每个列标题右侧都有一个筛选输入框,可以输入条件进行实时过滤。

    五、快捷键汇总表

    功能描述 快捷键 (Mac) 操作位置
    打开数据库 Command + O 全局
    新建数据库 Command + Shift + N 全局
    新建查询标签页 Command + N 查询编辑器
    执行全部查询 Command + R 查询编辑器/结查询结查询
    执行选中查询 Command + Shift + R 查询编辑器/结查询结查询
    提交事务 Command + Shift + C 全局(当有未提交更改时)
    回滚事务 Command + Shift + Z 全局(当有未提交更改时)
    查找 Command + F 查询编辑器/结查询结查询
    查找下一个 Command + G 查询编辑器/结查询结查询
    格式化 SQL 代码 Command + B 查询编辑器
    切换注释行 Command + / 查询编辑器
    显示/隐藏导航侧边栏 Command + Option + S 全局
    聚焦到查询编辑器 Command + Option + Q 全局
    复制当前行 Command + D 查询编辑器
    删除当前行 Command + Shift + K 查询编辑器

    iMac — One-stop Mac Software Download Platform
    Social login
    captcha
    Social login