If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Get index of values in buffer in a SP

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-27-02, 06:11
garfild garfild is offline
Registered User
 
Join Date: Aug 2002
Posts: 46
Get index of values in buffer in a SP

Hi,
I have a table with one column.
The column contains a buffer such as:
"ProductSet productNum productVal productName "
The table containes many rows.
I need to know the position of each value.
What query should i use in a SP that will return me
1,17,26,46 (the places of the data in the buffer).
Can it be done?
Can i retrieve from a table a specific row that i like?
Thaks
Yossi
Reply With Quote
  #2 (permalink)  
Old 11-27-02, 08:57
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: Get index of values in buffer in a SP

Quote:
Originally posted by garfild
Hi,
I have a table with one column.
The column contains a buffer such as:
"ProductSet productNum productVal productName "
The table containes many rows.
I need to know the position of each value.
What query should i use in a SP that will return me
1,17,26,46 (the places of the data in the buffer).
Can it be done?
Can i retrieve from a table a specific row that i like?
Thaks
Yossi
In Oracle, you could use the INSTR function to search for spaces in the buffer. Probably other DBMSs have a similar function.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On