This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Char c = (Char) stmt.getObject(1); or String s = (String) stmt.getObject(1);
Joined: Sep 28, 2004
Yes it worked.. But still i cant understand the problem. Oracle returns a single Character. I got the value in this way, shiftId = stmt.getString(1); But in the console i saw that the value of shiftID is of length 255 in which the first character is the return value & the rest is padded with empty spaces, then i used the trim() method it's working. Any reason for this.