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 -> sql select statement question from newbie

sql select statement question from newbie

From: Martin Meadows <mmeadows_at_indy.net>
Date: 1998/04/28
Message-ID: <35468799.52E1@indy.net>#1/1

I want to do something like the following:

   select * from payroll_employee_master      where :emp_number = emp_#;
   if sqlcode < 0 go to Ora-Err;

   I'm just checking to see if :emp_number is in    the payroll_employee_master table. This sql select    statement will be in a procobol program. Is this an okay    way to handle this? Is there a better way?

   Thanks,
   Martin Meadows Received on Tue Apr 28 1998 - 00:00:00 CDT

Original text of this message

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