Generate SQL with selected columns option
See original GitHub issueNot sure whether I should say it as enhancement or new feature request, but It would be nice to have the below option in Dbeaver.
We have an option in Dbeaver to generate INSERT, UPDATE, etc. queries dynamically. But with the current implementation it does consider all the available column on the grid.
I have a suggestion/request to consider only selected columns OR provide new option to Generate SQL with selected columns or even nested options are fine like below.
e.g. In the below example, I have selected only Column 1, Column 4 and Column 5, so it should generate INSERT/UPDATE considering only 3 columns and not all the available columns.
Note: I have edited the SQL Preview screen just so that others can visualize it very easily.
Context Menu
Output
Workaround:
There is a workaround for this, is to select only columns for those we want to generate SQL. e.g.
SELECT "Column 1", "Column 4", "Column 5" FROM TEST;
With this, generate SQL option will consider available columns and will generate SQL accordingly.
It would be nice to have above mentioned feature to generate SQL with selected columns so, user don’t have to prepare SQL every time if he wants to generate SQL with selective columns.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Let’s improve it:
This request #6426 could be implemented in the scope of this issue.