الانتقال إلى المحتوى

pre query


moad_krishan

Recommended Posts

سلام

Pre-Query
executes on the block level immediatly before a block receives execute query command.
It executes only once before the entire query processing
if you press the execute query button (f8(
the pre-query fires.

why to use it?

to prevent a query to take place, or modify query condition
Once the pre-query is executes, then Oracle forms issues the query to the database. Then when the records are being fetched, the post query executes once per record.

example
if the user name is SCOTT, you want to cancel the query
write the following on the PRE-QUERY trigger

IF USER='SCOTT' THEN
MESSAGE ('sORRY QUERY CANCELEED');
RAISE FORM_TRIGGER_FAILURE);

Ammar Sajdi
www.e-ammar.com

رابط هذا التعليق
شارك

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية