aspose file tools
The moose likes JDBC and the fly likes setNull(2, java.sql.Types.DATE);  Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic
Author

setNull(2, java.sql.Types.DATE);

Kee Kee moon
Ranch Hand

Joined: Dec 11, 2009
Posts: 140
If I use setNull(1, java.sql.Types.DATE); function, it will insert null on my table's column.
I want to select the date from another table and insert into my table's column, what should I do?
I am sure I cannot call setNull(1,java.sql.Types.DATE), it will insert NULL in my column.

Thanks in advance.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2343

Let's discuss in your original post:
http://www.coderanch.com/t/490526/JDBC/java/setNull-java-sql-Types-DATE


OCUP UML fundamental
ITIL foundation
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: setNull(2, java.sql.Types.DATE);
 
Similar Threads
addBatch - help/ideas?
setNull(1, java.sql.Types.DATE)
JDBC and null dates
preparedstatment and order by ?
Need to parse StringBuffer