Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Miscellaneous > Re: Using strin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 6870 of 7280
Post > Topic >>

Re: Using string variables in Select statements

by William Robertson <williamr2019@[EMAIL PROTECTED] > May 3, 2008 at 12:22 AM

On May 1, 4:07 pm, okumura-mik...@[EMAIL PROTECTED]
 wrote:
> I am attempting to use a variable in the WHERE clause of a SELECT
statement.
> How would one pass a value for an IN statement, ie.
>
>         SELECT *
>         FROM inventory
>         WHERE color IN ('red','green')
>
> If I replaced the last line with
>
>         WHERE color IN (v_color)
>
> How would I set it?
>
> v_color := '"red","green"'
>
> doesn't work.

http://tkyte.blogspot.com/2006/06/varying-in-lists.html
http://www.williamrobertson.net/do***ents/comma-separated.html
 




 3 Posts in Topic:
Using string variables in Select statements
okumura-mikiop@[EMAIL PRO  2008-05-01 11:07:03 
Re: Using string variables in Select statements
DA Morgan <damorgan@[E  2008-05-01 09:30:22 
Re: Using string variables in Select statements
William Robertson <wil  2008-05-03 00:22:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 0:38:53 CST 2008.