![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
имя таблицы в качестве параметра [D7, фб1,5]
stud © (2004-11-17 17:15:00)возможно ли выполнить в ХП такой запрос:
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:00) [1]разобрался