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

Home -> Community -> Usenet -> c.d.o.server -> Oracle Pro*C EXEC SQL statement

Oracle Pro*C EXEC SQL statement

From: BDargie <wcdargie_at_statestreet.com>
Date: 10 Oct 2001 14:02:00 -0700
Message-ID: <f5673601.0110101302.1f451cd2@posting.google.com>


Can someone please tell me what is wrong with the code listed below:

EXEC SQL UPDATE vpd_avail
set AVAIL_IND = 'Y', AVAIL_TIME = '20010926', TIME_STAMP = '20010926' where LOAD_DATE = '20010926'
and DATA_CATEGORY = 'TXN'
and TABLE_NM = 'txn_trans'
and REGION_NM = 'na1';

if ( sqlca.sqlcode < 0 ){
 printf("\n\nNO ROWS UPDATED FOR CATEGORY=%s TABLE=%s REGION=%s COMBINATION\n\n",
 data_category, table_nm, region_nm);
 return ( -1 );
}
return (0);

The sql runs perfectly from sqlplus but when I run the Pro*C exe I shows that the record has been updated but in fact it has not.

Thanks. Received on Wed Oct 10 2001 - 16:02:00 CDT

Original text of this message

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