Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Other Java > Java Databases
Java Databases Discussion specific to working with Java Databases. For other Java topics, please see related Java forums. For database discussions not specific to Java, please see the Database category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 30th, 2003, 09:10 PM
Registered User
Join Date: Aug 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending Date variable into Oracle Database


I'm trying to implement an SQLJ application that is using date as a variable in its database. The problem is that I cannot send date values from Java to the Database. It considered as unknown values.Otherwise the program works fine.


Old September 20th, 2003, 05:54 PM
Registered User
Join Date: Sep 2003
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to yasir_lahham

Indeed, I had the same problem once, and I made some work around, by using the To_Date() function when passing the date value to Oracle, and it was working perfectly.
instead of passing the date to the database, send a string "to_date('your date value','format')"
hope that can help

MHD Yasir Al-lahham

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending date and time to access database Yasho VB.NET 2002/2003 Basics 3 May 24th, 2007 12:59 AM
Getting oracle value and storing in xslt variable msj_vijay XSLT 0 December 29th, 2005 04:21 AM
sending multiple records to oracle stored procedur kohliamit Pro VB Databases 2 July 20th, 2005 01:28 AM
sending variable value to page when submitted crmpicco Classic ASP Basics 1 May 4th, 2005 07:23 PM
Sending & Retrieving Picture From Oracle To VB tutul128 Pro VB Databases 1 October 31st, 2004 06:41 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.