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 -> OCI & Dates

OCI & Dates

From: John Fisher <fisher_at_jfisher.comNOSPAM>
Date: Fri, 8 Jan 1999 13:07:10 -0800
Message-ID: <775s85$pt3$1@pollux.dnai.com>

Hello,

I'm writing a C program that needs to execute simple SQL INSERT statements on a remote Oracle database. Let me first preface by saying I haven't done anything like this with Oracle before. Basically my understanding is that I need to create an SQL statement containing a series of placeholders, such as :EMP_NUM or :CURRENT_SALARY, then execute a series of OCIBindByName() calls to 'fill in the blanks.' So my first question is, is this the 'correct' way to build an INSERT statement? Secondly, if this is correct, how to I build and insert a date/time value, given a (struct tm *) value, and bind it into an associated value?

Thanks,
John Received on Fri Jan 08 1999 - 15:07:10 CST

Original text of this message

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