🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi.bazy-danych
Article #70251

pole zawierające datę

#70251
From: EM
Date: Sat, 30 Jun 2007 13:52
22 lines
1625 bytes
Witam
zrobiłam w database desktop tabelę test.dbf, w której mam pola: id integer, 
nazwisko varchar(20) i pole data typu DATE.
Działa mi w Delphi coś takiego:
Query1.Close;
Query1.SQL.Clear;
Query1.SQL.Add('insert into test(id,nazwisko) values(4,"gajda")');
Query1.RequestLive:=true;
 Query1.ExecSQL;
ale jak chcę dodac w tabeli wartość do pola z datą(przykład poniżej) 
Query1.Close;
Query1.SQL.Clear;
Query1.SQL.Add('insert into test(id,nazwisko,data) values(4,"gajda",2006-11-
13)');
Query1.RequestLive:=true;
 Query1.ExecSQL;
to wyskakuje komentarz: "Type mismatch in expression". 
Czy ktoś z tu obecnych internautów ma pomysł jak dodać wartość pola 
zawierającego datę?

-- 
Wysłano z serwisu OnetNiusy: http://niusy.onet.pl
Technical Details
Message-ID: <0b55.000000b2.46866017@newsgate.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsgate.onet.pl!niusy.onet.pl

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsgate.onet.pl!niusy.onet.pl
From: "EM" <emilia241@poczta.onet.pl>
Newsgroups: pl.comp.lang.delphi.bazy-danych
Subject: pole zawierające datę
Date: 30 Jun 2007 15:52:24 +0200
Organization: Onet.pl SA
Lines: 22
Message-ID: <0b55.000000b2.46866017@newsgate.onet.pl>
NNTP-Posting-Host: newsgate.onet.pl
Mime-Version: 1.0
X-Trace: newsgate.test.onet.pl 1183211544 9638 213.180.130.18 (30 Jun 2007 13:52:24 GMT)
X-Complaints-To: abuse@onet.pl
NNTP-Posting-Date: 30 Jun 2007 13:52:24 GMT
X-Mailer: http://niusy.onet.pl
X-Forwarded-For: 192.168.13.2, 83.18.183.211, 192.168.243.43
X-User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;    SV1; DigExt; .NET CLR 2.0.50727)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit