Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.12.19;
Скачать: 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 вся ветка

Текущий архив: 2004.12.19;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.027 c
14-1101666074
OneFragLeft
2004-11-28 21:21
2004.12.19
Net Send


4-1099488416
andrey__
2004-11-03 16:26
2004.12.19
NamedPipe


1-1101925567
sloug
2004-12-01 21:26
2004.12.19
Listbox и Grid


1-1102411586
Arkady
2004-12-07 12:26
2004.12.19
Hint без наведения


1-1101725005
ranetka
2004-11-29 13:43
2004.12.19
как разрулить circular unit reference?