Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 Oracle PL/SQL: Prompts Jump to:  
Category: >> Oracle PL/SQL >> Prompts Bookmark and Share

<< lastnext >>

Snippet Name: Prompts

Description: A sample of using prompts.

Comment: (none)

Language:
Highlight Mode: PLSQL
Last Modified: March 02nd, 2009

accept newuser CHAR PROMPT  'Enter NEW Oracle User: ';
accept fuser CHAR PROMPT  'Enter FROM Oracle User: ';
UPDATE sy_user_id
   SET user_ref = '&newuser',
       des1 = '&newuser'
 WHERE user_ref = '&fuser'
/
UPDATE rq_approval_order
   SET user_ref = '&newuser'
  WHERE user_ref = '&fuser'
/
UPDATE sy_user_bom
   SET user_ref = '&newuser'
  WHERE user_ref = '&fuser'
/
UPDATE oe_notes_audience
   SET user_ref = '&newuser'
 WHERE user_ref = '&fuser'
/
UPDATE ar_customer_master
   SET collect_user_ref = '&newuser'
 WHERE collect_user_ref = '&fuser'
/
UPDATE im_item_loc
   SET def_po_agent = '&newuser'
  WHERE def_po_agent = '&fuser'
/
UPDATE po_hdr
   SET po_agent = '&newuser'
  WHERE po_agent  = '&fuser'
/
UPDATE po_loc
   SET def_po_agent = '&newuser'
  WHERE def_po_agent  = '&fuser'
/
UPDATE po_rechst_line
   SET po_agent = '&newuser'
  WHERE po_agent  = '&fuser'
/
UPDATE po_rechst_ord
   SET po_agent = '&newuser'
  WHERE po_agent  = '&fuser'
/
UPDATE po_line
   SET user_ref = '&newuser'
  WHERE user_ref  = '&fuser'
/
UPDATE rq_hdr
   SET user_ref = '&newuser'
  WHERE user_ref = '&fuser'
/
UPDATE rq_item_request
   SET req_user_ref = '&newuser'
  WHERE req_user_ref = '&fuser'
/
UPDATE rq_line
   SET user_ref = '&newuser'
  WHERE user_ref = '&fuser'
/
UPDATE rq_rfq_hdr
   SET user_ref = '&newuser'
  WHERE user_ref = '&fuser'
/
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Free
Oracle Magazine
Subscriptions
and Oracle White Papers


SQL University.net courses meet the most demanding needs of the business world for advanced education in a cost-effective manner. SQL University.net courses are available immediately for IT professionals and can be taken without disruption of your workplace schedule or processes.

Compared to traditional travel-based training, SQL University.net saves time and valuable corporate resources, allowing companies to do more with less. That's our mission, and that's what we deliver.

Click here to find out more
 
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 120 users online    © 2009 psoug.org

PSOUG LOGIN
Username: 
Password: 
Forgot your password?