Article View: pl.comp.lang.delphi.bazy-danych
Article #445Re: daty w sql
From: Radoslaw Klocek
Date: Thu, 29 Apr 1999 06:26
Date: Thu, 29 Apr 1999 06:26
25 lines
1508 bytes
1508 bytes
Gula napisał(a) w wiadomości: ...
>Cześć !
>
>Jaka jest skladnia polecenia jesli chodzi o daty wyciagane z tabel
lokalnych
>select * from _tabela where pole_tabeli > { tutaj nalezy wpisac date }
>Nie wiem jak okreslic date w tego typu zapytaniach ?
>
A może tak:
select * from _tabela where pole_tabeli > :data
a w programie
ParamByName('data').AsDate := EncodeDate(1999, 4, 29);
albo
ParamByName('data').AsDateTime := EncodeDate(1999, 4, 29) +
EncodeTime(8,26,58);
Takie coś powinno hulać niezależnie od używanego sterownika baz danych...
Radoslaw Klocek
mailto:radekk@pronet.com.pl
ICQ UIN:4560016
Nieruchomosci w Internecie: http://www.pronet.com.pl
Technical Details
Message-ID:
<AYSV2.21249$811.413163@news.tpnet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!uw.edu.pl!news.nask.pl!orion.cst.tpsa.pl!news.tpnet.pl!not-for-mailReferences:
<AKDV2.19433$811.378013@news.tpnet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!uw.edu.pl!news.nask.pl!orion.cst.tpsa.pl!news.tpnet.pl!not-for-mail From: "Radoslaw Klocek" <radekk@pronet.com.pl> Newsgroups: pl.comp.lang.delphi.bazy-danych References: <AKDV2.19433$811.378013@news.tpnet.pl> Subject: Re: daty w sql Lines: 28 X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Message-ID: <AYSV2.21249$811.413163@news.tpnet.pl> Date: Thu, 29 Apr 1999 08:26:55 +0200 NNTP-Posting-Host: 195.117.154.72 X-Complaints-To: abuse@tpsa.pl X-Trace: news.tpnet.pl 925367200 195.117.154.72 (Thu, 29 Apr 1999 08:26:40 MET DST) NNTP-Posting-Date: Thu, 29 Apr 1999 08:26:40 MET DST MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit