Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.

Display of line / row numbers

mgroen's profile image mgroen posted 4 years ago in General Permalink

I am new to HeidiSQL, I would like to see row ID's, in the query result pane.

Is this already possible? (if so, sorry I couldn't find the setting to enable it). If not, please could this be regarded as a feature request?

See attached file for clarification.

Thanks, Mathijs

1 attachment(s):
  • 2016-10-19_14-43-44
ansgar's profile image ansgar posted 4 years ago Permalink

No, there is no row id column, and there is no setting to show that.

But while the grid is focused, the status bar shows a panel with "[line] : [column]".

mgroen's profile image mgroen posted 4 years ago Permalink

Hi, thanks for the reply.

Can I bring this in as a feature request?

kalvaro's profile image kalvaro posted 4 years ago Permalink

That wouldn't be a row ID anyway. It'd be the row position in the result set. Is that what you want?

mgroen's profile image mgroen posted 4 years ago Permalink

Yes, actually it doesn't really matter what name it gets..

I am looking for a extra column which contains row numbers. Similar as in Excel for example:

1 attachment(s):
  • 2016-10-20_9-17-09
TTSneko's profile image TTSneko posted 4 years ago Permalink

@mgroen:, what you see in Excel is not applicable in database result sets.

If you fire an SQL SELECT command which returns 20 rows, numbering them 01-20 would be completly useless because you would not be able to do anything with those numbers as they are not the true index pointers belonging to the corresponding data rown.

"Excel index method =/= database index method"

mgroen's profile image mgroen posted 4 years ago Permalink

@TTsneko:

incorrect assumption. For me, as a QA/test engineer, the usage of a SQL tool would be to validate that, in your specific example, actually 20 rows are returned (if 20 would be expected). It would be much easier to visual validate if the row numbers would be displayed. The comparision to Excel is just to illustrate the possible implementation in Heidi's UI. Other than that I do not compare Excel with database result sets.

TTSneko's profile image TTSneko posted 4 years ago Permalink

@mgroen:

Then why don't you rely on the numbers clearly shown already? The DATA view in your first screenshot clearly states "70 rows" (in this case). That count is always at the same place and would not require scrolling down if the result is larger. An additional numerical column next to the data rows adding up to number "X" would merely create unwanted visual clutter and even be potentially dangerous while working with true data indexes of the same number range (for obvious reasons). In a QUERY view, the corresponding tab consists of the info "tablename (columns x rows)" which also allows you to instantly see if the expected number of rows was returned. Again without having to scroll or look of the last result line.

I must really be missing something important here, otherwise I can only assume that you are trying to make things more complicated than they need to be.

mgroen's profile image mgroen posted 4 years ago Permalink

@TTSneko:

relying on the value "70 rows" only allows me to validate the total amount of records. What I want to have is to see (visually) that value X is indeed on row 34 (for example). There is now way to do that now.

kalvaro's profile image kalvaro posted 4 years ago Permalink

It wouldn't be a bad feature anyway. Some times I'm inspecting a result set back and forth and it could be handy to have a simple row number to spot the tuple again, esp. when the PK looks like 2,339,384 or (23, 85, 12).

kalvaro's profile image kalvaro posted 4 years ago Permalink

... and it'd be even more useful if the column was fixed so it remained visible despite horizontal scroll.

mgroen's profile image mgroen posted 4 years ago Permalink

@kalvaro: that's exactly what I mean (we have same usage scenario's)... Also.. totally agree with your remark in your last posting..

Also. I want to note that MS SQL Management Server (2012) has exactly this feature already (but still I like HeidiSQL, and want to help make it even better :))

roy-marquez's profile image roy-marquez posted 1 month ago Permalink

Today this feature is still needed and missing. Eaerlier, when I tried to insert some data from the query window, it return an error: / SQL Error (1264): Out of range value for column 'id' at row 443 / So I though the problem was in the 443 query line 443, but indeed was is the 443 row of the data result set. Figuring out how to look for the line 443 brough me to this forum. We should have a feature for turn on/off line numbers y "Data" Tab. Same way as we have line numbers in "Query" tabs

Please login to leave a reply, or register at first.




Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.