i have a table in ms sql server having data like:
col1 col2
123 dsk
456 dsk
789 mrk
450 dsk
i have to write the resultset to ms excel using java and poi. i have to create sheets by name dsk and mrk and add the respective resultset to respective sheets. i am able to write the resultset successfully, but all the data come under only one sheet. how to do this? (may be using for or while or.. loops)
createSheet(col2_value)