where clause [message #273551] |
Wed, 10 October 2007 21:28  |
maxim9
Messages: 3 Registered: October 2007
|
Junior Member |
|
|
Hello All, how to compare names in where clause.?
l_name varchar2(50)
---
CURSOR
....
OPEN
...
SELECT
..
where name = l_name
it give no data found error.
procedure compiles but failes on execution.
it works
where name = 'Tom'
so how to compare?
Thanks,Maxim
|
|
|
|
|
Re: where clause [message #273557 is a reply to message #273553] |
Wed, 10 October 2007 22:14   |
maxim9
Messages: 3 Registered: October 2007
|
Junior Member |
|
|
Thanks for the reply. I am new here. Can you help? I have to equate t.name = l_name in a where condition. but it gives no data found error. I used to_char, " " also. Did not work
Thanks,Maximus
|
|
|
Re: where clause [message #273561 is a reply to message #273551] |
Wed, 10 October 2007 22:22  |
muzahid
Messages: 281 Registered: September 2004 Location: Dhaka, Bangladesh
|
Senior Member |
|
|
Quote: |
l_name varchar2(50)
---
CURSOR
....
OPEN
...
SELECT
..
where name = l_name
|
Did you assign "Tom" to variable l_name.
If possible post your code, we will then go through the code.
|
|
|