All SQL commands require column names, not numbers.
Furthermore, SQL tables do not have an inherent order where row numbers would make sense; records can be identified only by some unique field values.
So, strictly speaking, the answer to your question is "no".
To access columns by number, you need to know which column has which number so that you can map the number back to the corresponding name:
String[] columnNames = new String[] {
"NAME", "DELIVERY_STREAM", "NUMBER_OF_FEET", "RETICULATED", ...
};
int columnNumber = ...;
String sql = "UPDATE Project SET " + columnNames[columnNumber] + " = ? WHERE ...";
Mapping from row numbers to actual records would require that you store an array with those records' key values somewhere, but this is not feasible when using multiple JSP pages.
Instead of the row number, just use some key value from the original table (the primary key, or SQLite's rowid
) to identify records; that is what keys are for.