That is easy. Never put explicitly date in your sql statement like "...myDate='whatever-date-format..." Make a PreparedStatement as "...myDate=?..." and use stmt.setDate(1,d); to set the actual value d is java.sql.Date The driver itself will take care of database specific formatting. Dragomir Dimitrijevic ---------- From: Sajida Kalsoom[SMTP:[EMAIL PROTECTED]] Sent: Saturday, September 25, 1999 04:42 PM To: [EMAIL PROTECTED] Subject: Re: how to connect servlets with database through odbconlinux/solaris <<File: ATT00000.txt>> ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
Re: how to connect servlets with database through odbconlinux/solaris
Dr. Dragomir D. Dimitrijevic Sat, 25 Sep 1999 04:52:17 -0700
