I am generating a C program for specific queries and am having trouble with the DATE type. When I create a struct for a Table how do I declare this datatype?
example:
struct {
VARCHAR staffNo[ID_LEN];
VARCHAR fName[UNAME_LEN];
VARCHAR lName[UNAME_LEN];
char sex;
DATE dob; /*this doesnt work*/
.
.
.
} staffrec;
While trying to figure it out I found a variable type called OCIDATE, but "OCIDATE dob" doesnt compile either.
Any help is appreciated
John
example:
struct {
VARCHAR staffNo[ID_LEN];
VARCHAR fName[UNAME_LEN];
VARCHAR lName[UNAME_LEN];
char sex;
DATE dob; /*this doesnt work*/
.
.
.
} staffrec;
While trying to figure it out I found a variable type called OCIDATE, but "OCIDATE dob" doesnt compile either.
Any help is appreciated
John