EDbColDateTime insert sql
| Thu, 2005-07-14 16:15 | |
|
hi everybody
i got a problem with "EDbColDateTime", that is.... how can i insert a date in my table having a column type EDbColDateTime? i'm trying with: '01/01/1977' '#01/01/1977#' '01011977' '#01011977#' ... have you any idea? i found no documentation about it! thanks stefano |
|






Forum posts: 34
now i have another problem: how can i retrieve this information from the database? how can i READ this date?
thanks
Stefano
Forum posts: 34
TDbColNo colData=colSet->ColNo(KRiferimentoDataCol);
HBufC* bufData=HBufC::NewLC(view.ColLength(colData));
TInt lenData=view.ColLength(colData);
TPtr bufDataPtr=bufData->Des();
RDbColReadStream inData;
inData.OpenLC(view,colData);
TRAPD(err,inData.ReadL(bufDataPtr));
if (err==KErrEof) {}
inData.Close();
CleanupStack::PopAndDestroy();
CCknInfoDialog::RunDlgLD(_L("Data"),bufData->Des());
CleanupStack::PopAndDestroy(bufData);
but bufData is empty...
do you have any idea??
stefano
Forum posts: 80
i was getting crazy with inserting a date in the database. But ur post has make my work so easy!!!!