0 Replies Latest reply on May 13, 2012 10:10 AM by 936979

    timestamp with oo4o

      Hi all.
      Iam installed oracle 11 xe and i use Visual c++ to deverloping application.
      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");
      OValue val;
      odyn.GetFieldValue("sale_date", &val);
      printf("\r\nsale date=%s", (const char*) val);

      but return value is null;
      can you help me?