Sql Satement print list of string [message #628347] |
Mon, 24 November 2014 06:54 |
preet_kumar
Messages: 204 Registered: March 2007
|
Senior Member |
|
|
With the below statement i can print sequence of 1 till 20
select level from dual connect by level <= 20;
Is it possible to print something like below with a sql and using regexp? e.g in bash echo {a,b}{1..10}
a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 b1 b2 b3 b4 b5 b6 b7 b8 b9 b10
|
|
|
|
|
|
|
Re: Sql Satement print list of string [message #628360 is a reply to message #628359] |
Mon, 24 November 2014 08:19 |
preet_kumar
Messages: 204 Registered: March 2007
|
Senior Member |
|
|
Thanks John for your response and the select statement.
@John
The reason for me to think of regexp is because this may not work if i have to front something with zero prefix 00..10
echo {a,b}{00..10}
a00 a01 a02 a03 a04 a05 a06 a07 a08 a09 a10 b00 b01 b02 b03 b04 b05 b06 b07 b08 b09 b10
|
|
|
|