![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
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. |
#4
| |||
| |||
|
|
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. |
#5
| |||
| |||
|
|
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. |
#6
| |||
| |||
|
|
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. |
#7
| |||
| |||
|
|
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. |
#8
| |||
| |||
|
|
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. |
#9
| |||
| |||
|
|
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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |