我想研究mysql提供的jdbc源代码,我去过mysql的http://forums.mysql.com/list.php?39这个论坛,但发现基本都是讨论应用型的,有谁知道这样的专业论坛在哪里,谢谢!

解决方案 »

  1.   

    You can give a new post on the offcial forum or the MySQL mail list.
    There'll be more enthusiastic people to help you.
      

  2.   

    public String getMessage()
    {
        try
        {
         con = DriverManager.getConnection("jdbc:mysql://localhost/userinfo?user=root&password=1");     //localhost:主机名或者地址    userinfo:数据库名字    user:用户名    password:密码
         stmt = con.createStatement();
         String sql = "select * from user where user_id='" + userID + "'";
         rs = stmt.executeQuery(sql);
         if(rs.next())
         {
          message = rs.getString("user_age");
         }
         stmt.close();
         con.close();
         return message;  
        }
        catch(SQLException e)
        {
         message = e.toString();
         return message;
        }

    看看 很简单的也很固定 现在的项目都不用JDBC了。可以研究哈!