SQL syntax question
- From: "Zvonko" <zvonko_NOSPAM_@xxxxxxxxxx>
- Date: Mon, 29 May 2006 11:31:13 +0200
Hi all!
I was wondering if this is possible:
To make things simpler, I have a table:
CREATE TABLE example
(text VARCHAR(30),
number INTEGER);
For example I have this values in it:
someText 4
someText1 6
someText2 8
Now I would like to get a ResultSet using only SQL in which I would like
to have someText in four rows, someText2 in 6 rows and someText2 in 8 rows.
Basically to get field text repeated for number of times.
ResukltSet:
someText
someText
someText
someText
someText1
someText1
someText1
someText1
someText1
someText1
someText2
someText2
someText2
someText2
someText2
someText2
someText2
someText2
Please help.
.
- Follow-Ups:
- Re: SQL syntax question
- From: Erland Sommarskog
- Re: SQL syntax question
- Prev by Date: Re: DBA Interview Questions
- Next by Date: Re: SQL syntax question
- Previous by thread: port specification
- Next by thread: Re: SQL syntax question
- Index(es):