Although I have SQL/DBA experience in Oracle8, I am not versed in PL/SQL; pehaps someone can help:
I need to create function to build a "word list index" by extracting all unique words from a varchar2 field. (I realize Context/Intermedia will do this, however I can not install it at this time).
Basically I have a table (PRODUCT_ALL) as example:
MODEL_NUMBER: A234244 (primary key)
ITEM_DESC: SERIAL MOUSE 3-BUTTON WITH MOUSE PAD
I want to write out to a table called WORD_LIST:
TABLE_NAME: PRODUCT_ALL
KEY: A23444
WORD: SERIAL
~~~
TABLE_NAME: PRODUCT_ALL
KEY: A23444
WORD: MOUSE
~~~
TABLE_NAME: PRODUCT_ALL
KEY: 3-BUTTON
WORD: SERIAL
~~~
TABLE_NAME: PRODUCT_ALL
KEY: 3-BUTTON
WORD: WITH
...and so on, just unique words (MOUSE appears once)
Obviously, this needs to loop the entire table to collect every row.
Any help in coding this procedure is greatly appreciated.
Thanks
Louis Capece
I need to create function to build a "word list index" by extracting all unique words from a varchar2 field. (I realize Context/Intermedia will do this, however I can not install it at this time).
Basically I have a table (PRODUCT_ALL) as example:
MODEL_NUMBER: A234244 (primary key)
ITEM_DESC: SERIAL MOUSE 3-BUTTON WITH MOUSE PAD
I want to write out to a table called WORD_LIST:
TABLE_NAME: PRODUCT_ALL
KEY: A23444
WORD: SERIAL
~~~
TABLE_NAME: PRODUCT_ALL
KEY: A23444
WORD: MOUSE
~~~
TABLE_NAME: PRODUCT_ALL
KEY: 3-BUTTON
WORD: SERIAL
~~~
TABLE_NAME: PRODUCT_ALL
KEY: 3-BUTTON
WORD: WITH
...and so on, just unique words (MOUSE appears once)
Obviously, this needs to loop the entire table to collect every row.
Any help in coding this procedure is greatly appreciated.
Thanks
Louis Capece