Re: Query needs to loop?
- From: Hugo Kornelis <hugo@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 26 Aug 2005 00:14:25 +0200
On Thu, 25 Aug 2005 14:55:34 -0700, DonSQL2222 wrote:
>Is this possible?
>A char variable length field contains this data: (for example)
>ABC,XYZ,GEF,CAB
>I need to query another table on the contents of each of these names that
>are separated by comma.
>I need to read ABC and then query another table for ABC in field1 and pick
>up some fields.
>Then, I need to do the same for XYZ, etc, reading across.
>How can I parse the field that's comma delim, and in one continuous select
>statment pick all the data from another table? Put a looping statement into
>the Select statement to read through the comma delim field until done?
>Thanks,
>Don
Hi Don,
http://www.sommarskog.se/arrays-in-sql.html
Best, Hugo
--
(Remove _NO_ and _SPAM_ to get my e-mail address)
.
- References:
- Query needs to loop?
- From: DonSQL2222
- Query needs to loop?
- Prev by Date: Query needs to loop?
- Next by Date: Re: How to Join a table with Other (result) Tables ? Complex one
- Previous by thread: Query needs to loop?
- Index(es):
Relevant Pages
|
|