what I want is to get all the values that are into a column that i call in query from Java to SQL Server, I think it is like this:
public ArrayList createArray(ResultSet data){
try {
ArrayList arrayData = (ArrayList) data.getArray(1);//get all the data from the resultSet that's into the column 1
return arrayData;
} catch (SQLException ex) {/*Error message*/return null;}
}
But actually I don't know what does getArray() returns, and I don't find any information about it.
If someone can help, I'll be thankful.
Also if getArray() doesn't work like I think it does, could you please tell me how to do what I want?
code. The post author will always be notified of your comment. To also notify a previous commenter, mention their user name: @peter or @PeterSmith will both work. Learn more…