Форум: "Базы";
Текущий архив: 2004.12.19;
Скачать: [xml.tar.bz2];
Внизимя таблицы в качестве параметра Найти похожие ветки
← →
stud © (2004-11-17 17:15) [0]возможно ли выполнить в ХП такой запрос:
tn="""||:tn||""";
for execute statement "SELECT distinct TranDate FROM " ||:tn||
" WHERE TranAddr=9 and ((trantype=64) or (trantype=87)) order by trandate"
into :trandate_
do
begin
for execute statement "select trantime FROM "||:tn||
" WHERE TranAddr=9 and trandate=:trandate_ and
((trantype=64) or (trantype=87))"
into :t_time
do
begin
if (:t_time<cast("15:00" as time)) then do15=:do15+1;
if (:t_time>=cast("15:00" as time)) then po15=:po15+1;
end
suspend;
end
компиляция в эксперте проходит нормально.
при выполнении выскакивает ошибка -206 неизвестное поле trandate_
возможно ли выполнить подобный запрос?
← →
stud © (2004-11-17 17:47) [1]разобрался
Страницы: 1 вся ветка
Форум: "Базы";
Текущий архив: 2004.12.19;
Скачать: [xml.tar.bz2];
Память: 0.45 MB
Время: 0.048 c