GeekInterview.com
Series: Subject: Topic:
Question: 28 of 165

Can you truncate a table in a procedure in Oracle Forms? The table name is passed into the procedure.

Asked by: Amritha | Member Since Jun-2006 | Asked on: Jun 22nd, 2006

View all questions by Amritha

Showing Answers 1 - 3 of 3 Answers
kaye

Answered On : Aug 22nd, 2006

yes.use execute immediate.

  
Login to rate this answer.

yes

create procedure truncatetable(tname in varchar2) is

sqlstr varchar2(100);

begin

sqlstr := 'truncate table '||tname;

execute immediate  sqlstr;

end;

  
Login to rate this answer.
Shital Mistry

Answered On : Aug 11th, 2012

It is not directly supported in forms, but FORMS_DDL built in can be used to TRUNCATE the table.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.