473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

query regarding to .csv file size problem

hi all
here im trying to create .csv file.
my code is

public class CSVFile {

public static void main(String[] args) {

String record=null;
try {
Class.forName("org.sqlite.JDBC");


Connection conn=DriverManager.getConnection("jdbc:sqlite:"+"C :\\Sqlite
retriver.db");
Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery("select * from fileSystem");
ResultSetMetaData meta=rs.getMetaData();
int colCount=meta.getColumnCount();
int j=0;
File fileStore = new File(fileStore.csv");
FileOutputStream fos=new FileOutputStream(fileStore);
long i=0;
while(i++<10000)
{
rs.next();
record=rs.getString(1)+","rs.getString(2)","rs.get String(3)","rs.getString(4)","rs.getString(5)","rs .getString(6)","rs.getString(7)","rs.getString(8)" ,"rs.getString(9)"\n";
fos.write(record.getBytes());
System.out.println("counter"+(j++));

}


This is my code
my problem is in my database i have 2,00,000 records
but here i will get upto 65,000 records only


i want to get all records
is there any solution
plz help me
Sep 27 '07 #1
0 1021

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: gaurav.dube | last post by:
I am facing a problem with warning removal I have got a header file it contains extern declarations of lot of variables (say 100) This header file is included in hundreds of .c files. Some of...
17
by: NeoAlchemy | last post by:
I am starting to find more web pages that are using a query parameters after the JavaScript file. Example can be found at www.opensourcefood.com. Within the source you'll see: <script...
13
by: prasadmpatil | last post by:
I am new STL programming. I have a query regarding vectors. If I am iterating over a vector using a iterator, but do some operations that modify the size of the vector. Will the iterator recognize...
1
by: jalpari | last post by:
hi all, i have created a form in which i have a button for searching records from database, when a record is found it'z displayed in the table fields and whenever the record'z not found it displays...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.