Home » Community » Newbie corner » A trouble with "select" from Oracle DB
| Re: A trouble with "select" from Oracle DB [message #29403 is a reply to message #29396] |
Tue, 19 October 2010 09:28   |
|
|
| porto wrote on Mon, 18 October 2010 16:52 | I have a problem with selecting data from the DB (Oracle ver. 10.2). The database has a table that contains 14,124 rows. When I try to fetch data with this code:
Oracle8 oracle;
oracle.Open("user/pass@server/db", false));
Sql sql(oracle);
sql.Execute("select * from IKIS_ERS.INSUR_ANKT_A");
while(sql.Fetch())
Cout() << sql[0] << "\n";
I get only 345 rows.
|
I fetched from a table more than 1000 rows. it was not problems.
I will try to fetch more than 10 000 rows to test your problem.
The problem can be:
If you run in terminal with non GUI then in terminal you can view only last 3XX rows.
Try to put your output in file and count rows.
| porto wrote on Mon, 18 October 2010 16:52 |
When I try to select data from the database using the same SQL query with "SQLPlus Worksheet" (its a tool from Oracle), I get 14,600 (why not 14,124 I don't know).
|
seems your oracle db or client has problems. Check it twice.
[Updated on: Tue, 19 October 2010 09:35] Report message to a moderator
|
|
|
|
 |
|
A trouble with "select" from Oracle DB
By: porto on Mon, 18 October 2010 15:52
|
 |
|
Re: A trouble with "select" from Oracle DB
By: tojocky on Tue, 19 October 2010 09:28
|
 |
|
Re: A trouble with "select" from Oracle DB
By: porto on Tue, 19 October 2010 09:43
|
 |
|
Re: A trouble with "select" from Oracle DB
By: tojocky on Tue, 19 October 2010 10:02
|
 |
|
Re: A trouble with "select" from Oracle DB
By: porto on Tue, 19 October 2010 10:35
|
 |
|
Re: A trouble with "select" from Oracle DB
By: tojocky on Tue, 19 October 2010 10:46
|
 |
|
Re: A trouble with "select" from Oracle DB
By: porto on Tue, 19 October 2010 10:53
|
 |
|
Re: A trouble with "select" from Oracle DB
By: tojocky on Tue, 19 October 2010 11:33
|
 |
|
Re: A trouble with "select" from Oracle DB
By: porto on Tue, 19 October 2010 13:15
|
 |
|
Re: A trouble with "select" from Oracle DB
By: tojocky on Tue, 19 October 2010 13:35
|
 |
|
Re: A trouble with "select" from Oracle DB
By: porto on Tue, 19 October 2010 13:53
|
 |
|
Re: A trouble with "select" from Oracle DB
By: porto on Tue, 19 October 2010 14:28
|
 |
 |
Re: A trouble with "select" from Oracle DB
By: porto on Tue, 19 October 2010 14:44
|
 |
|
Re: A trouble with "select" from Oracle DB
By: tojocky on Tue, 19 October 2010 15:15
|
 |
|
Re: A trouble with "select" from Oracle DB
By: porto on Tue, 19 October 2010 15:34
|
 |
|
Re: A trouble with "select" from Oracle DB
By: tojocky on Tue, 19 October 2010 16:21
|
 |
|
Re: A trouble with "select" from Oracle DB
By: porto on Tue, 19 October 2010 16:31
|
 |
|
Re: A trouble with "select" from Oracle DB
By: tojocky on Tue, 19 October 2010 17:00
|
 |
|
Re: A trouble with "select" from Oracle DB
By: porto on Tue, 19 October 2010 17:14
|
 |
|
Re: A trouble with "select" from Oracle DB
By: tojocky on Wed, 20 October 2010 09:15
|
 |
|
Re: A trouble with "select" from Oracle DB
By: porto on Wed, 20 October 2010 09:54
|
Goto Forum:
Current Time: Sun Dec 14 09:25:45 CET 2025
Total time taken to generate the page: 0.17466 seconds
|