In the Mysql Workbench I used before Heidi you get a complete default-select-statement with a right click on the table name and choosing "select rows" like
SELECT * FROM dummy.test;
This way you have a "starting point" which saves a lot of typing when you debugging schemas a lot. The phpmyadmin does similar.
Is this feature available in Heidi as well?
automatically getting a "frame" of a select-statement
In the very right box inside a query tab you see the selected table's "Columns in [table]". Expanding that enables you to select one or more columns, then a rightclick offers "Generate INSERT", "Generate UPDATE" and "Generate DELETE". Unfortunately, "Generate SELECT is missing hereThink it's a good idea to add SELECT to that menu.
Thats a good question...
I'd say if there are more possible variables, then you could refactor the whole menu-structure there and make most of the entries a "snippet". So you get the details of the SQL out of your code, which is a good thing, IMHO.
But if the example above is the only thing that could be done with variables it might be a bit of overkill to code a parser for such variables.
I am a bit "locked on target" right now to give a good advise. Maybe other users have an opinion on this topic?
I'd say if there are more possible variables, then you could refactor the whole menu-structure there and make most of the entries a "snippet". So you get the details of the SQL out of your code, which is a good thing, IMHO.
But if the example above is the only thing that could be done with variables it might be a bit of overkill to code a parser for such variables.
I am a bit "locked on target" right now to give a good advise. Maybe other users have an opinion on this topic?
Code modification/commit
d00adaf
from ansgar.becker,
11 years ago,
revision 8.0.0.4477
Add "Generate SELECT..." menu item to query helpers context menu. See http://www.heidisql.com/forum.php?t=13108
Please login to leave a reply, or register at first.