problem with cursor [message #210042] |
Tue, 19 December 2006 01:31 |
v.ram81
Messages: 50 Registered: April 2006 Location: pune
|
Member |
|
|
hi
i have problem with cursor.
i have dealer balance yearly tables.
such as dlrbal_20052006,dlrbal_20042005... so on.
now i want to select records from table .
table name (or year string )eg. 20042005 is taken as input
from user.
[COLOR=blue]how can i use parameter or bind veriables in cursor
select clause[/COLOR]?
the cursor looks like this
cursor c1 is
select * from
dlrbal_20042005;
now i want 20042005 string should get replaced
by user inputed value.
thanks in advance.
ram.
|
|
|
|
|