From: | abhilas(at)iiitmk(dot)ac(dot)in |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Cc: | abhilas(at)iiitmk(dot)ac(dot)in |
Subject: | |
Date: | 2002-07-18 23:42:38 |
Message-ID: | 200207182342.g6INgbc10500@iiitmk.ac.in |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
I am retrieving the values of some positions of a table dynamically.The
position has null(automatically database insert that null value),1,2
values.I have to retrieve that values to a java prog and to check whether
the retrieved value is 1,2 or null.This I am doing like this.
I reterieves the value using rs1.getString(usrnameDB).
if(rs1.getString(usrnameDB).equals("1"))
else if(rs1.getString(usrnameDB).equals("null"))
The II line won't work because here the null parameter(entered
automatically in the database)is something different from that is there in
a JAva prog.
I just want to know how can I check that a retrieved value in this
manner is 1,2 or null.
Abhilash
---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/
From | Date | Subject | |
---|---|---|---|
Next Message | Guthrie, John | 2002-07-19 13:25:21 | Re: |
Previous Message | Laurette Cisneros | 2002-07-18 22:36:32 | Re: jdbc problem with time |