Menu

#94 Automatically add column LINENUM to each row

open
None
5
2015-09-26
2015-09-26
No

This column will contain the line number that this row starts in the CSV file (counting from 1 for the first row of data after the header). Some example queries are:

SELECT LINENUM, START_TIME FROM t0 WHERE IDX = 5135

SELECT * FROM t1 WHERE LINENUM = 3

The LINENUM column is not included in SELECT *, the following SQL query will add this column:

SELECT LINENUM, * FROM t1

In situations with no line number, LINENUM will be SQL NULL.

Originally requested in CsvJdbc Open Discussion *Data direct path access (for Indexing) *

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.