Solved

DML in QUERY_ONLY Form

Posted on 2010-11-23
5
491 Views
Last Modified: 2012-05-10
I know that when I call a form (e.g. using call_form) I can set the mode to QUERY_ONLY so that users cannot insert/delete/update records in called form. My question is if I issue a DML statement in a procedure e.g.  

begin
insert into table_name values (value1, value2,...);
commit;
end;

Would above DML statement insert values in to the table?

Thanks in advance!
0
Comment
Question by:McLeanIS
5 Comments
 
LVL 14

Expert Comment

by:ajexpert
ID: 34198288
Yes


It will insert the values in table if you execute the following block
begin 

insert into table_name values (value1, value2,...); 

commit; 

end;

Open in new window

0
 
LVL 47

Expert Comment

by:schwertner
ID: 34198298
i guess it wiil not work. the result will be error ...

But the best answer will give the experiment. It is so easy ...
0
 
LVL 14

Accepted Solution

by:
leoahmad earned 125 total points
ID: 34198318
no, it would not
0
 
LVL 14

Expert Comment

by:ajexpert
ID: 34198324
@schwertner:
Can you please tell why it wont work?

The author is stating
" I issue a DML statement in a procedure e.g.  "
0
 

Author Comment

by:McLeanIS
ID: 34198617
Thanks for the inputs.

ajexpert, what I mean in question is would a DML statement in a QUERY_ONLY form work? I tested it  and it doestn't work for me but it seems working for someone else I saw. That's the reason why I subbmitted a question here.

Thanks again!
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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Dependencies in Software Design In software development, the idea of dependencies (http://en.wikipedia.org/wiki/Coupling_%28computer_programming%29) is an issue of some importance. This article seeks to explain what dependencies are and where they …
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

863 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

27 Experts available now in Live!

Get 1:1 Help Now