Most people try to get their data in to
3NF. Your data is not even in
1NF which is why you're having problems. I'd suggest reading up a bit on normal forms and then just altering your table to hold each value separately ie
Code:
# original string "aaa,bbb,,ddd,eee"
insert mytable ( seq, myfield ) values ( 1, "aaa" );
insert mytable ( seq, myfield ) values ( 2, "bbb" );
insert mytable ( seq, myfield ) values ( 4, "ddd" );
...
Then all you have to write is
Code:
select myfield from mytable where seq in (1,2,3)
Mike