Garayed.com  

Go Back   Garayed.com > Oracle
FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-2005, 02:47 PM
godiva
 
Posts: n/a
Default in statement not working

Hi,
I am seeing an odd problem with part of a stored procedure I am
building. Values are passed via and Access interface. All values are
processed properly except for one little annoying thing for which our
DBAs have no explanation. I pass a string from access that looks like
this: ABCDEF_ASDFGH. Inside the stored proc, it is altered to:
'ABCDEF','ASDFGH' so that it can be used as the details of an in
statement. If only one is passed (i.e. ABCDEF), the in statement works
fine, but if it is more than one, it gets ignored. I have checked to
make sure that the statement is properly built. Here is what it looks
like, somewhat:
listfromaccess : ABCDEF_ASDFGH
listaltered: replace(listfromaccess, '_', chr(39)||chr(44)||chr(39))

where table.item in (listaltered)
We are on oracle 9i and currently use Toad 7.5 for most of development.
Any suggestions on how to rectify this situation would be greatly
appreciated. I have also tried building the statement so that the line
becomes table.item = 'ABCDEF' or table.item = 'ASDFGH', but that also
gets overlooked. It reports that the script is executed with 0 errors
and 0 compile errors.
thanks,
godiva

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

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



All times are GMT. The time now is 10:46 AM.




LinkBacks Enabled by vBSEO 3.0.0 © 2007, Crawlability, Inc.