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

имя таблицы в качестве параметра   Найти похожие ветки 

 
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 вся ветка

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



Память: 0.45 MB
Время: 0.021 c
1-1101970017
Adis Tadas
2004-12-02 09:46
2004.12.19
Можно ли вернуть из DLL record?


14-1101623392
SergP.
2004-11-28 09:29
2004.12.19
P-IV &amp; Oracle


4-1099055852
alexwarrior
2004-10-29 17:17
2004.12.19
VK_LBUTTON не генерится


3-1100872553
Dionnis
2004-11-19 16:55
2004.12.19
Поиск по базе ...


4-1098538256
RedLord
2004-10-23 17:30
2004.12.19
блокировка перезапуска компа




   Наверх