4D v16

OCIDefineDateByPos

Home

 
4D v16
OCIDefineDateByPos

OCIDefineDateByPos 


 

OCIDefineDateByPos ( stmtp ; defnnpp ; errhp ; position ; valuep ; valuep2 ; dty ; indp ; rlenp ; rcodep ; mode ) -> Function result 
Parameter Type   Description
stmtp  Longint in Handle to requested SQL query operation
in
defnnpp  Longint in Define handle
in
errhp  Longint in Error handle
in
position  Longint in Position of value in list
valuep  Pointer in Buffer(s) of type specified in dty parameter
in
valuep2  Pointer in Buffer(s) of type specified in dty parameter
in
dty  Longint in Datatype
indp  Pointer in Indicator variable or array
rlenp  Pointer in Array of length of data fetched
in
rcodep  Pointer in Array of column-level return codes
mode  Longint in Specifies mode of operation
Function result  Longint in Status

Please refer to the OCIDefineDateByPos command in the OCI documentation provided by Oracle for more information.

Note: The OCIDefineDateByPos command is similar to the OCIDefineByPos command except that there is an additional valuep2 parameter to adapt it for working with Oracle columns of the TIMESTAMP type. For this command, the valuep parameter is a pointer to a date (C_DATE) and valuep2 is a pointer to a time (C_TIME). When both parameters are used, the command takes the date (day/month/year) from the valuep parameter and the time (hour:minute:second) from the valuep2 parameter.

Example  

See the example for Working with Oracle Date types.

 
PROPERTIES 

Product: 4D
Theme: Relational Commands
Number: 705236

 
HISTORY 

 
ARTICLE USAGE

4D for OCI ( 4D v16)