|
СЕЛЕКТ к ОРАКЛ
|
|||
---|---|---|---|
#18+
VFP 9 через ODBC делаю запрос к ОРакл: sel="Select a.acctext,o.ddate,o.oprnum,o.pvqt,o.isdb,o.oprcod "+; "from "+shema+".opprov o, "+shema+".opaccounts a where o.klicod=a.klicod and o.conto=a.conto "+; "and o.sconto=a.sconto and o.nnumber=a.nnumber and o.crcod=a.crcod and o.ddate between '"+dat1+"' and '"+dat2+"' " +; "and a.oldcount='"+stracc+"'" так работает... добавляю подзапрос: "Select a.acctext,o.ddate,o.oprnum,o.pvqt,o.isdb,o.oprcod, "+; "(select oprname from nmopr where oprcod=o.oprcod ) as oprn "+; "from "+shema+".opprov o, "+shema+".opaccounts a where o.klicod=a.klicod and o.conto=a.conto "+; "and o.sconto=a.sconto and o.nnumber=a.nnumber and o.crcod=a.crcod and o.ddate between '"+dat1+"' and '"+dat2+"' " +; "and a.oldcount='"+stracc+"'" и уже не работает! В TOAD данные выводятся нормально.. ХЭЛП МИ. ... |
|||
:
Нравится:
Не нравится:
|
|||
23.12.2008, 08:00 |
|
|
start [/forum/moderation_log.php?user_name=%D0%9A%D0%BE%D1%82+%D0%A1%D0%B8%D0%B1%D0%B8%D1%80%D1%81%D0%BA%D0%B8%D0%B9]: |
0ms |
get settings: |
8ms |
get forum list: |
12ms |
get settings: |
11ms |
get forum list: |
14ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
38ms |
get topic data: |
10ms |
get first new msg: |
7ms |
get forum data: |
2ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
others: | 1197ms |
total: | 1343ms |
0 / 0 |