Вниз
Скачать: CL | DM;

Запрос с параметром timestamp   Найти похожие ветки 

 
UVV ©   (2005-01-27 07:30) [0]

Нужно сделать запрос
select some from somewhere where dates >= :currenttime and datee <= :currenttime

dates и datee поля типа timestamp
Подскажите как передать значение текущего времени в currenttime?


 
Deniz   (2005-01-27 07:39) [1]


Query.text:="select some from somewhere where :currenttime between dates and datee";
Query1.Prepare;
Query1.Params[0].asDateTime:=Now;
Query1.Open;


 
UVV ©   (2005-01-27 08:11) [2]

Огромное спасибо!



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.028 c
3-1106671003
chistyakov
2005-01-25 19:36
2005.02.27
Альтернативный DataSource


1-1108393628
_Sergey
2005-02-14 18:07
2005.02.27
Чтение файла своей прогой


6-1102929897
Шишкин Илья
2004-12-13 12:24
2005.02.27
Сеть в WinApi приложении


4-1105332498
BoxTer
2005-01-10 07:48
2005.02.27
Принтер А3


1-1108119530
mishabik
2005-02-11 13:58
2005.02.27
Output settings




   Наверх