This discussion is archived
0 Replies Latest reply: May 13, 2012 3:10 AM by 936979 RSS

timestamp with oo4o

936979 Newbie
Currently Being Moderated
Hi all.
Iam installed oracle 11 xe and i use Visual c++ to deverloping application.
ex:
Create table sales(
sale_id integer,
sale_date timestamp,
sale_desc varchar(254),
sale_amount number(10, 2)
);

// first, open an ODatabase
ODatabase odb("ExampleDB", "scott", "tiger");

// create and open a dynaset
ODynaset odyn;
odyn.Open(odb, "select * from sales");
if(odyn.IsOpen()){
OValue val;
odyn.GetFieldValue("sale_date", &val);
printf("\r\nsale date=%s", (const char*) val);

}
but return value is null;
can you help me?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points