|
СЕЛЕКТ к ОРАКЛ
|
|||
---|---|---|---|
#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/topic.php?fid=41&fpage=139&tid=1586934]: |
0ms |
get settings: |
9ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
28ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
37ms |
get tp. blocked users: |
2ms |
others: | 314ms |
total: | 425ms |
0 / 0 |