Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Come and try this one, why not try this one !

N.Jun 4 2003 — edited Jun 6 2003
hello friends at oracle.com!

I need this output:

15 apfel
15 birne
15 banane
15 traube

from the following table contents.:

SQL> desc nik_t
Name Null? Type
------------------------------- -------- ----
ID NUMBER
DES VARCHAR2(100)

SQL> select * from nik_t
2 /

ID
---------
DES
----------------------------------------------------------------------------------------------------
15
apfel;birne;banane;traube


SQL>

I have got this far but now am stuck.


1* select substr(des,1,instr(des,';')-1) from nik_t
SQL> /

SUBSTR(DES,1,INSTR(DES,';')-1)
----------------------------------------------------------------------------------------------------
apfel

SQL>

Hope you can help friends at oracle.com this one tricky indeed 4 me.

gracias'
noklia
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 4 2003
Added on Jun 4 2003
15 comments
930 views