|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
is this a legal IN statment?
Code:
... ELSIF p_client_id IN(SELECT client_id FROM client) THEN ... I just need to validate that the p_client_id value is an actual client from the client table.
__________________
Reinventing the wheel again |
|
#2
|
|||
|
|||
|
Looks ok to me?
|
|
#3
|
||||
|
||||
|
I have discovered that in Oracle (9i at least) that you cannot use the IN function inline in an IF statement. You could, however, write a boolean function to return a value indicating whether or not your value is in the set.
|
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > is this a legal IN statment? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|