Hello Synu,
Monday, November 13, 2000, 12:42:51 PM, you wrote:
SJV> Hi,
SJV> I need to set an Integer field in the database to NULL using prepared
SJV> statement.
SJV> I found the method as follows.But i don't know what is the value of the
SJV> parameter" sqlType" for integer.
SJV> setNull(int paramIndex, int sqlType, String typeName).
SJV> Please explain with an example.
Use same sqlType as for not null values - java.sql.Types.INTEGER
--
Best regards,
Oleg mailto:[EMAIL PROTECTED]
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets