DBeaver has no menu item Generate SQL Generate SQL

Intro

DBeaver is a great multi-platform GUI database client that supports multiple data sources.
There is a function that I often use:
when I query a result set, I can select certain rows, and then generate corresponding SQL statements such as insert/update/select. The advantage of this generation process is that it is automatic, fast, and less error-prone.

But a problem arises:
sometimes after I select a row in the result set interface, the right-click menu has this option, and sometimes there is no: "Generate SQL/Generate SQL".

insert image description here

root of the problem

The presence or absence of this menu item depends on whether your query SQL is a single table or multiple tables?

At first I thought it was a DBeaver version issue or a system compatibility issue.
It was later discovered that it was a problem with the select statement I executed.

单表查询语句的结果集才有**生成SQL**这个菜单项,多表关联查询的结果集没有这个菜单项!

Menu for the result set of a single-table query

in
insert image description here

zh
insert image description hereinsert image description here

Menu for the result set of a multi-table relational query

There is no 生成SQL/Generate SQLsuch menu item.

in
insert image description here

zh
insert image description here

test version

https://download.dbeaver.com/community/23.0.3/dbeaver-ce-23.0.3-macos-aarch64.dmg
insert image description here

Guess you like

Origin blog.csdn.net/wuyujin1997/article/details/130451491