Solved

help with FORMS_DDL statement in FORMS v4.5

Posted on 2001-06-15
1
1,145 Views
Last Modified: 2008-02-01
on a WHEN-BUTTON-PRESSED, I want to execute 2 SQL UPDATE commands. So in the PL/SQL EDITOR, I created the following code:



 FORMS_DDL ('UPDATE TABLE1 SET EMPNO = "W3333-";
             commit;
            UPDATE TABLE2 SET EMPNO = "X3333-";
             commit; ');

I can't get it to work.   Where am i going wrong ?
0
Comment
Question by:joekeri
1 Comment
 
LVL 2

Accepted Solution

by:
renuraj earned 50 total points
Comment Utility
Try as shown below
FORMS_DDL ('UPDATE TABLE1 SET EMPNO = '||''''||'W3333-'||''''||';');
FORMS_DDL ('commit;')
FORMS_DDL ('UPDATE TABLE2 SET EMPNO = '||''''||'X3333-'||''''||';');
FORMS_DDL ('commit;')

Commit statement after the first update is not required, no problem if we issue commit after every dml statement.

Regards,
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now