|
|
|
TOracleQuery и sys_refcursor
|
|||
|---|---|---|---|
|
#18+
имеется такой код Код: pascal 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. сама функция из оракла возвращает 5 записей, но почему то в делфи возвращает только 1, не могу понять в чем дело, причем в справке по ДОА такой же пример, практически ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2017, 09:33:56 |
|
||
|
TOracleQuery и sys_refcursor
|
|||
|---|---|---|---|
|
#18+
а надо next правильно писать... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2017, 09:45:59 |
|
||
|
TOracleQuery и sys_refcursor
|
|||
|---|---|---|---|
|
#18+
Tactical Nuclear Penguin, мда..спасибо, не обратил внимаение еще потому что rowcount у t2 выдовало 1 запись ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2017, 09:51:03 |
|
||
|
TOracleQuery и sys_refcursor
|
|||
|---|---|---|---|
|
#18+
Через датасет проще хотя более ресурсоемко Код: pascal 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2017, 10:04:10 |
|
||
|
TOracleQuery и sys_refcursor
|
|||
|---|---|---|---|
|
#18+
Там нет FetchAll? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2017, 10:39:21 |
|
||
|
TOracleQuery и sys_refcursor
|
|||
|---|---|---|---|
|
#18+
wadmanТам нет FetchAll?в каком места тама? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2017, 11:04:28 |
|
||
|
TOracleQuery и sys_refcursor
|
|||
|---|---|---|---|
|
#18+
andreymxwadmanТам нет FetchAll?в каком места тама? Даже и не знаю... У сессии может? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2017, 11:32:39 |
|
||
|
TOracleQuery и sys_refcursor
|
|||
|---|---|---|---|
|
#18+
wadmanandreymxпропущено... в каком места тама? Даже и не знаю... У сессии может?прошерстил все исходники - FetchAll нету а что он должен делать? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2017, 13:11:45 |
|
||
|
TOracleQuery и sys_refcursor
|
|||
|---|---|---|---|
|
#18+
авторwhile not ods.Eof do begin inc(i); ods.next; end; это и есть fetchall, если что. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2017, 14:18:20 |
|
||
|
TOracleQuery и sys_refcursor
|
|||
|---|---|---|---|
|
#18+
может, речь об этом? TOracleDataSet.CountAllRecords Declaration propertyCountAllRecords: Boolean; Description When this property is set to True, the datasetwill first count the number of records that the query will return, before fetching the records. This is useful when you do not want to immediately fetch all records when the dataset is opened, but still want the RecordCount to reflect the total number of records. The scroll bar in a TDBGrid will display the correct position if CountAllRecords is True, or if QueryAllRecords is set to True. Setting both properties to True is not useful. или этом TOracleDataSet.QueryAllRecords Declaration propertyQueryAllRecords: Boolean; Description When set to True, all records will be retrieved from the database when the dataset is opened. When set to False, records are retrieved when a data-aware component or a program requests it. If a query can return many records, set this property to False if initial response time is important. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.12.2017, 20:55:27 |
|
||
|
|

start [/forum/topic.php?fid=58&fpage=123&tid=2041472]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
7ms |
check topic access: |
7ms |
track hit: |
59ms |
get topic data: |
9ms |
get forum data: |
6ms |
get page messages: |
37ms |
get tp. blocked users: |
1ms |
| others: | 230ms |
| total: | 379ms |

| 0 / 0 |
