I have an oracle script with about 20
commands in it (few hundred lines of sql).
oraclescript runs this just fine, But I have had a request, the users want to be able to
run a certain command in the script and not the rest, what I want to do is have the script in a memo field the user scrolls through to the point in the memo field where the command they want to run is, press a button and then that command is ran.
The question is, how can I equate that memoline to a script line and show that current line of script... but how do I take script line and get the current command and then tell the script (or a dataset) to run that command? I can't figure out how to take line #200, and tell the script to run command #33.
I know, search up and down the memo for ; or / and parse it myself... but there has got to be an easier way.
ie.
Sample script
SELECT
*
FROM DUAL;
SELECT
SYSDATE
FROM DUAL;
SELECT
COUNT(*) FROM TAB;
SELECT COUNT(*) FROM V$SESSION;
User wants to run command #3 (select from tab).
Ideas?
commands in it (few hundred lines of sql).
oraclescript runs this just fine, But I have had a request, the users want to be able to
run a certain command in the script and not the rest, what I want to do is have the script in a memo field the user scrolls through to the point in the memo field where the command they want to run is, press a button and then that command is ran.
The question is, how can I equate that memoline to a script line and show that current line of script... but how do I take script line and get the current command and then tell the script (or a dataset) to run that command? I can't figure out how to take line #200, and tell the script to run command #33.
I know, search up and down the memo for ; or / and parse it myself... but there has got to be an easier way.
ie.
Sample script
SELECT
*
FROM DUAL;
SELECT
SYSDATE
FROM DUAL;
SELECT
COUNT(*) FROM TAB;
SELECT COUNT(*) FROM V$SESSION;
User wants to run command #3 (select from tab).
Ideas?