Home » Developer & Programmer » Forms » about binding variables
about binding variables [message #84988] Tue, 18 May 2004 05:35 Go to next message
R.SRIDHARAN
Messages: 1
Registered: May 2004
Junior Member
whether there is any possibility of binding
table name as a variable in oracle forms 6i
for DDL

FOR EXAMPLE:
forms_ddl('drop table (:blockname.variable)')
Re: about binding variables [message #84993 is a reply to message #84988] Wed, 19 May 2004 01:21 Go to previous messageGo to next message
R.Babu
Messages: 1
Registered: May 2004
Junior Member
Try FORMS_DDL('DROP TABLE'||:BLOCKNAME.VARIABLE);
Re: about binding variables [message #85000 is a reply to message #84993] Thu, 20 May 2004 00:49 Go to previous message
Himanshu
Messages: 457
Registered: December 2001
Senior Member
Hi,
FORMS_DDL will not work.
Make a Stored procedure with following code & call it in your form.

Procedure xxx (P_TNAME VARCHAR2,P_ERROR VARCHAR2)IS
a varchar2(1000):='DROP TABLE '||TNAME||' CASCADE CONSTARINTS';
BEGIN
EXECUTE IMMEDIATE A;
P_ERROR :='SUCCESS';
EXCEPTION
WHEN OTHERS THEN
P_ERROR :=SQLERRM;
END;

Regards
Himanshu
Previous Topic: CHECK BOX, people help I have several hours left.
Next Topic: ORA-03121 error
Goto Forum:
  


Current Time: Mon Jul 08 15:09:40 CDT 2024