Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> PL/SQL Programming problem

PL/SQL Programming problem

From: Silvercup <dpierce_at_morgan.ucs.mun.ca>
Date: 1997/02/26
Message-ID: <33147011.17E4@morgan.ucs.mun.ca>#1/1

I am trying to write a PL/SQL program that does the following:

  1. accepts user input
  2. does validity checks on the user input
  3. depending on a particular field the user enters, I want to run a specific query: For example: if the user enters a record type 'C' then run select query1 else run select query2
  4. output the selected records to a user specified file

   Does anyone out there know how I can do this? I can't seem to get any help from the Oracle SQL*Plus documentation.

   I am running SQL*Plus on a Win 95 PC, that connects to an Oracle database stored on a Windows NT server. My version of Oracle is Oracle7 version 7.1.3.3.3

   If anyone is really familiar with this version of Oracle, and you do programming in C/C++ (not OWL), could you tell me how to use C/C++ to also solve the above problem (ie. I need to know the headers, and libraries that I should use in my C/C++ program).

   Any help would be greatly appreciated.

-- 
Thanks,                             | "We live in a society of laws.
David J. Pierce                     |  Why do you think I took you
Programmer Consultant               |  to see all those Police Academy 
Computing And Communications        |  movies!!!"
Memorial University Of Newfoundland |     - H. Simpson
Received on Wed Feb 26 1997 - 00:00:00 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US