Connection conn = DBConnnector.getConnection();
Statement stmt=conn.createStatement();
String sql="SELECT * from article";
ResultSet rs;
try{
rs=stmt.executeQuery(sql);
}catch(Exception ex){
ex.printStackTrace();
}
/*********************************
Sorry, but this is only what I can show. DBConnector
is a class where I get the Connection to the database.
My database is MySQL. In the table article, I have a
column of "text" type.The actual code is very much like
this. The exception was thrown at
rs=stmt.executeQuery(sql); *********************************/