By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,990 Members | 1,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,990 IT Pros & Developers. It's quick & easy.

How to read tables from DB2 and write them in txt file using JAVA Code?

P: 2
i am trying to read the table in DB2 using JAVA code. then it is supposed to be copied in .txt file. how can i do this?

other thing, i m passing date in dddd-mm-yy format from JAVA codeto call a Stored Procedure in DB2. I need to delete all the records till this date from th edatabase. But in tables, i have used timestamp instead of date. how can i compare the date that is passed from java and a timestamp whic is already there in Table in DB2.

thanks in advance.
Oct 1 '06 #1
Share this Question
Share on Google+
1 Reply


10K+
P: 13,264
i am trying to read the table in DB2 using JAVA code. then it is supposed to be copied in .txt file. how can i do this?

other thing, i m passing date in dddd-mm-yy format from JAVA codeto call a Stored Procedure in DB2. I need to delete all the records till this date from th edatabase. But in tables, i have used timestamp instead of date. how can i compare the date that is passed from java and a timestamp whic is already there in Table in DB2.

thanks in advance.
what have you done so far?
Oct 4 '06 #2

Post your reply

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