Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Execute ".SQL" file with PL/SQL

DhaneenjaMay 2 2011 — edited May 2 2011
hi all,
i need to complete following task, is there any way to complete this task,
---
DECLARE
v_index_name VARCHAR2(40);
BEGIN
SELECT INDEX_NAME
INTO v_index_name
FROM USER_IND_COLUMNS
WHERE TABLE_NAME='MY_TABLE'
AND COLUMN_NAME ='MY_COL1';
EXCEPTION
WHEN NO_DATA_FOUND THEN
@C:\Work\Oracle\create_index.sql;
END;
/
---
Thanks
Tharindu Dhaneenja
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2011
Added on May 2 2011
7 comments
6,598 views