|
СЕЛЕКТ к ОРАКЛ
|
|||
---|---|---|---|
#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=localhost8080]: |
0ms |
get settings: |
9ms |
get forum list: |
15ms |
get settings: |
11ms |
get forum list: |
16ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
40ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
43ms |
get tp. blocked users: |
2ms |
others: | 442ms |
total: | 601ms |
0 / 0 |