Solved

DML in QUERY_ONLY Form

Posted on 2010-11-23
5
490 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
Comment Utility
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
Comment Utility
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
Comment Utility
no, it would not
0
 
LVL 14

Expert Comment

by:ajexpert
Comment Utility
@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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Before You Read The Article Please make sure you understand these two concepts: Variable Scope (http://www.php.net/manual/en/language.variables.scope.php) and Property Visibility (http://www.php.net/manual/en/language.oop5.visibility.php).  And to …
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Via a live example, show how to take different types of Oracle backups using RMAN.

744 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

10 Experts available now in Live!

Get 1:1 Help Now