This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes How to Insert Date Month by month via JDBC (MySQL DB) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to Insert Date Month by month via JDBC (MySQL DB)" Watch "How to Insert Date Month by month via JDBC (MySQL DB)" New topic
Author

How to Insert Date Month by month via JDBC (MySQL DB)

priyanka kulathilaka
Ranch Hand

Joined: Apr 13, 2011
Posts: 36
Now my code generated other data from today to mention period. those are correctly inserted.but date inserted as same date.
need to insert month by month. because hope to make a monthly installment calculator
please help me friends..






Priyanka Kulathilaka
Software Engineer - Java
Sri Lanka
T Mishra
Ranch Hand

Joined: Apr 04, 2006
Posts: 108

Are you getting any error ?


Thanks,
Tushar (SCJP 1.5)
priyanka kulathilaka
Ranch Hand

Joined: Apr 13, 2011
Posts: 36
T Mishra wrote:Are you getting any error ?


sorted it

thanks
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37890
    
  22
And how did you sort it? We would like to know, because the same problem might appear in the future.
priyanka kulathilaka
Ranch Hand

Joined: Apr 13, 2011
Posts: 36
Campbell Ritchie wrote:And how did you sort it? We would like to know, because the same problem might appear in the future.


 
jQuery in Action, 2nd edition
 
subject: How to Insert Date Month by month via JDBC (MySQL DB)
 
Similar Threads
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Opti onal fature not implem
How to set date in mysql using prepared statement?
Date default in SQL Server
inserting a date field
How to write to new table?