有谁知道mysql的jdbc源代码研究社区? 我想研究mysql提供的jdbc源代码,我去过mysql的http://forums.mysql.com/list.php?39这个论坛,但发现基本都是讨论应用型的,有谁知道这样的专业论坛在哪里,谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 You can give a new post on the offcial forum or the MySQL mail list.There'll be more enthusiastic people to help you. 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了。可以研究哈! MySql如何做数据迁移??? 停掉mysql服务之后为什么还有这么多mysql mysql查询:如果将记录按时间段分组 关于超大型网站的数据库备份问题 父类,子类问题 字段用 password()加密了,却用password() 读不出来了,是什么原因呢? Mysql数据库insert中文时的错误,请帮助分析! 数据库类型转换!? mysqldump备份数据库的时候可不可以一次将所有的库都备下来啊? phpmyadmin 进入出错 注册表保存到数据库问题 mysql导入mssql2005问题.用OPENROWSET这样的导入方式怎么导入,谢谢了,急...
There'll be more enthusiastic people to help you.
{
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了。可以研究哈!