数据库中的时间如何在程序中显示出来?(pro*c,)
要求,从数据库中提取birth_date,然后在程序中显示出来,(用pro*c)
....
我不知道数据库中的date类型,如何才能对应c中能处理的类型;
最后printf(".."...)出来;
昨天问过这个问题,to_char()我没成功,
我的几个句子;
char birth[24];
.....
... emp cursor for select to_char(birth_date,"yymmmmm") from employee;
for(; ;)
{
.....not found....
fetch emp into :birth;
printf("%s",birth);/* 我想要这个结果,*/
}
..........but i failed,希望高手指点一下