Microsoft
Software
Hardware
Network
Question : Converting LONGTEXT to String MYSQL JDBC
Hi, I'm trying to convert LONGTEXT in mysql into a java String, Is there a way I can do this?
I saw on a Sun Forum that I can use rs.getString(ROW) with the LONGTEXT.. but it's still giving me this error..
Any Ideas?
run:
Initializing database GS
URL: jdbc:mysql://IGSBCCCMAS000
2:3306/GS
Connection: com.mysql.jdbc.Connection@
14ed9ff
Exception in thread "main" java.sql.SQLException: Before start of result set
at com.mysql.jdbc.ResultSet.c
heckRowPos
(ResultSet
.java:3624
)
at com.mysql.jdbc.ResultSet.g
etString(R
esultSet.j
ava:1762)
at javaapplication6.PushExecD
B.findExeS
tring(Push
ExecDB.jav
a:161)
at javaapplication6.Main.main
(Main.java
:35)
Java Result: 1
BUILD SUCCESSFUL (total time: 2 seconds)
Answer : Converting LONGTEXT to String MYSQL JDBC
You need to used
rs.next();
before calling
rs.getString(ROW);
Random Solutions
DOS TCP/IP Network bootdisk to ghost PCs on a network share drive
Fedora C2 Bash Path
How to Set Permission in Event Receiver in sharepoint ?
Need To Find GMAIL Account Owner
Selecting an entry from a List Box to edit the entry on a form
RRAS Enable Fragmentation Checking
Change WSUS download directory
Help with a complex query
Exchange 2007 421.4.2.1 error
Server: Msg 137, Level 15, State 2, Line 9: Must declare the variable '@vriable'.