posted 18 years ago
I get a resultset from SQL Query which looks like
FirstNameLastNameUseridphonephone_seqdefaultphonetype
------------------------------------------------------
bobdole100234567890101ent
bobdole100234567890211ent
johnsmith101234567890303per
johnsmith101234567890413per
johnsmith101234567890523per
johnsmith101234567890633per
I want to know if there is an easy of parsing this resultset andput them into hashmaps
hashmap1
--------
Firstname=bob
Lastname=dole
userid=100
phone1=2345678901
phone2=2345678902
default_phone=1
type=ent
hashmap2
--------
Firstname=john
Lastname=smith
userid=101
phone1=2345678903
phone2=2345678904
phone3=2345678905
phone4=2345678906
default_phone=3
type=per
Any help is appreciated.
Thanks
[Bear edit: adjusted title]
[ April 07, 2005: Message edited by: Bear Bibeault ]