How to combine the multiple lines of data of a single column of data base into one line while retrieving or after retrieving. I am using JDBC to retrieve the data.
Below is example
Column address
is stored as below in database and when retrieved and populated in Excel also it is populated in different rows of the column (different cells)
plot-22, xyz
Bangalore
Karnataka
521638
after retrieving the data from data base I have to put it in a excel file as below in one cell
plot-22, xyz Bangalore Karnataka 521638
I have tried many ways but not able remove the escape line and combine into one line.
I am using SQL Server database.