|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Passing tablenames to stored procedures : 00922: missing or invalid option
This is the procedure I am trying to execute.. and I get the following error on line 11:
00922: missing or invalid option Can you help me? CREATE OR REPLACE procedure temp_ccd ( table_name varchar2 ) IS records_count number:=0; v_command varchar(900); BEGIN set v_command:='SELECT COUNT(*) FROM '||table_name 'where input_date <= last_day(add_months(sysdate,-1))'; EXECUTE IMMEDIATE v_Command INTO records_count; -- SELECT count(*) --FROM @table_name where input_date <= last_day(add_months(sysdate,-1)); COMMIT; END temp_ccd; |
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > Passing tablenames to stored procedures : 00922: missing or invalid option |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|